PHP addslashes() Function
addslashes() function is used to add backslashes before the characters that need to be escaped.
Note: The predefined characters are:
- single quotes (')
- double quote (")
- backslash (\)
- NUL (the NUL byte - \0)
|str||Required||Specifies the string to be escaped.|
|Number||Returns a string with backslashes added before characters that need to be escaped.|
Hi Developers, we almost covered 90% of String functions and Interview Question on PHP with examples for quick and easy learning.
We are working to cover every Single Concept in PHP.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.