PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I remove escape characters from data?


You can do this using the stripslashes function, so for instance here is an example of removing the escape characters before apostrophes in a string:

<?php
$data 
"I\'m the king of the castle";
echo 
stripslashes($data); //I'm the king of the castle
?>

Comments on this Question/Answer

Can I eliminate escape character from data with out using magic quotes methods
By: vipin s v, 16 Jul 2009 02:06:42



Reply to comments / post your own comment >>>

ASK A QUESTION

More forms PHP Questions

I currently use this form on my site: Name

PHP program to register students' record

Hello: I receive two error messages when I try to submit a form. The messages are: Warning: mysqli_query() [function.mysqli-query]: Empty query in /home/content/PRIVATE/html/riskyjobs_riskybusiness_Database_TableSetup_riskyjobs_Table_Chapter9_Page5

if i send values to database ,but in that table zeros is added ,how can i rectify the error

i just wanted to put a textbox beside the query of the evaluation form. how can i do that? ========================== here is my php form index.php PERFORMANCE APPRAISAL INSTRUMENT var Event = { add: function(obj,type,fn) {



Custom Search