PHP stripcslashes() FunctionLast Updated : 7 Feb 2026 The stripcslashes() is predefine function of PHP. It is used to remove backslashes and clean up data retrieved from a database or from an HTML form. It returns a string with backslashes stripped off. This function stripcslashes() is important while we need to remove the backslashes. Syntax:
Example 1Output: Hello PHP! Example 2Output: Before using 'stripcslashes()' Function: Hello, we areLearning PHP from javaTpoint. By using 'stripcslashes()' Function: Hello, we areLearning PHP from javaTpoint. Reference: http://php.net/manual/en/function.stripcslashes.phpNext TopicPHP String |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India