Categories: PHP

stripcslashes – PHP String Functions

Syntax :

string stripcslashes ( string);

Description :

It’s an inbuilt function of PHP. stripcslashes() function un-quote string quoted with addcslashes(). Recognizes C-like \n\r …, octal and hexadecimal representation.

Note : We can use this function to clean up data fetched from a database or data which is submitted by an HTML form.

Parameter :

  • string – This is a Required parameter. The string to be unescaped.

Output :

Returns the unescaped string. Removes the backslashes from string.


Related articles : addslashes(), addcslashes(), stripcslashes().


stripcslashes() – PHP Functions Example 1 :
<?php
echo stripcslashes("Who\'s Charles?");
?>

Output of above code in the browser is as below:

Who’s Charles?

jyoti rani

Recent Posts

A Unique Toy Shopping Experience: The Best Toy Store in Delhi and Across India

Toys are an essential part of childhood, shaping creativity, learning, and fun-filled memories. Whether it’s the soft embrace of plush…

5 hours ago

A World of Play: The Best Toy Shopping Experience in Noida

Toys are a gateway to imagination, creativity, and learning. Whether it’s a child’s first plush toy, a set of engaging…

1 day ago

The Ultimate Guide to Finding the Best Toy Shops in Gurgaon

Toys are more than just playthings; they help children explore, learn, and develop essential life skills. From interactive sensory toys…

2 days ago

The Ultimate Toy Shopping Guide: Finding the Best Toy Store in Noida

Toys are more than just playthings; they are tools that foster creativity, motor skills, and cognitive development in children. From…

3 days ago

Exploring the Best Toy Shop in Delhi: A Blend of Fun, Learning, and Creativity

Toys play an integral role in a child’s growth and development. They spark creativity, encourage learning, and provide endless hours…

6 days ago

What Is a Progressive Web App? Why Would You Need One?

App usage is growing steadily without showing any signs of slowing down. Hence, it is no surprise that mobile applications…

1 year ago