- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
stripslashes() function in PHP
The stripslashes() function is used to un-quote a quoted string.
Syntax
stripslashes(str)
Parameters
str − Specify the string.
Return
The stripslashes() function returns a string with backslashes stripped off i.e '\' becomes '. The double backslashes (\) are form into a single backslash (\).
Example
The following is an example −
<?php $mystr = "Tom\ Hanks"; echo stripslashes($mystr); ?>
Output
The following is the output −
Tom Hanks
Advertisements