PHP stripslashes Function

What is stripslashes Function?

Explanation

In PHP this function is used to un-quote string quoted with addcslashes.

Syntax:


stripslashes(string)

In the above syntax "string" is the text with backslashes to be cleaned up of backslashes.

Example :


<?php
echo stripslashes("Where's HIOX INDIA located?");
?>
Result :

Where's HIOX INDIA located?

In the above example the backslash, before the quote is removed and the string is displayed.

PHP Topics


Ask Questions

Ask Question