strip_slashes($data)
Parameters: |
|
---|---|
Returns: |
String(s) with stripped slashes |
Return type: |
mixed |
Removes any slashes from an array of strings.
Example:
$str = array( 'question' => 'Is your name O\'reilly?', 'answer' => 'No, my name is O\'connor.' ); $str = strip_slashes($str);
The above will return the following array:
array( 'question' => "Is your name O'reilly?", 'answer' => "No, my name is O'connor." );
Note
For historical reasons, this function will also accept and handle string inputs. This however makes it just an alias for stripslashes()
.
Please login to continue.