145
PHP addcslashes() Function
PHP addcslashes() function is used to add quote string with slashes in a C style. It is case-sensitive
Syntax:
Parameter | Description | Required/Optional |
---|---|---|
String | String to be esxaped | Required |
Character | Character or range to be escaped. | Required |
Example 1
Output:
Your String : Welcome to TutorAspire By using 'addcslashes()' method your string: Welcome to JavaTpoint
Example 2
Output:
Your String : Welcome to TutorAspire By using 'addcslashes()' method your string: Welcome to JavaTpoint
Example 3
Output:
Welcome to TutorAspire Welcome to JavaTpoint
Example 4
Output:
Welcome to tutoraspire Welcome to JavaTpoint<br>
Example 5
Output:
Your string value is: Welcome to TutorAspire By using addcslashes() Function your value is : Welcome to JavaTpoint
Next TopicPHP String