when we submit any string in single inverted comma('abc')
with get or post method,we will get exact string with single
inverted comma('abc')by using $_REQUEST[]. But it is giving
(\'abc\'). so anybody please help me to remove that
slash,therefore i will get exact string...

Answer Posted / asish kumar khuntia(mithu)

When a special char like ', " etc, are passing through we
are add slashes
we remove those things through stripslashes(\'abc'\);

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the method to register a variable into a session?

482


What is isset php?

517


How do you sort an array in php?

523


How to access a Static Member of a Class in PHP?

509


What is the use of extract function in php?

504






Explain what are the different errors in php?

543


Tell us what is the difference between session_unregister() and session_unset()?

549


What is overloading and overriding in oop?

553


How can I display text with a php script?

473


Tell us how to set cookies in php?

529


What is php session and how it works?

520


How to find length of an array in php ?

554


How come the code works, but does not for two-dimensional array of mine?

496


Is php front end?

501


Which will start a session?

574