PHP addcslashes() Function
addcslashes() function is used to add backslashes before the specified characters in a given string.
Note: If you choose to escape characters 0, a, b, f, n, r, t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t and \v, all of which are predefined escape sequences in PHP.
|str||Required||Specifies the string to be escaped.|
|char_list||Required||Specifies the sequence of characters.|
|String||Returns a string with backslashes before characters that are listed in char_list parameter.|
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.