strip_slashes($data)
Parameters: |
|
---|---|
Returns: |
String(s) with stripped slashes |
Return type: |
mixed |
Removes any slashes from an array of strings.
Example:
1 2 3 4 5 6 | $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:
1 2 3 4 | 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.