on database i have field desc with value \'test\' actually the input is 'test'

when i gather the field for display it on table, it show \'test'\ not 'test'

anyone can know how to change the value become 'test' ?


Use stripslashes to remove the slashes. For example:

echo stripslashes( $field );
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.