PHP addcslashes() FunctionPHP addcslashes() function is used to add quote string with slashes in a C style. It is case-sensitive Syntax:
Example 1Output: Your String : Welcome to JavaTpoint By using 'addcslashes()' method your string: Welcome to Java\Tpoint Example 2Output: Your String : Welcome to JavaTpoint By using 'addcslashes()' method your string: Welcome to J\av\aTpoint Example 3Output: Welcome to JavaTpoint \Welcome to \Java\Tpoint Example 4Output: Welcome to JavaTpint W\e\l\c\o\m\e \t\o J\a\v\aT\p\o\i\n\t<\b\r> Example 5Output: Your string value is: Welcome to JavaTpoint By using addcslashes() Function your value is : W\e\l\co\m\e to J\av\aTp\oint Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India