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...

Answers were Sorted based on User's Feedback



when we submit any string in single inverted comma('abc') with get or post method,we will..

Answer / amjith ps (http://beyondaltitu

stripslashes($string);

Is This Answer Correct ?    6 Yes 0 No

when we submit any string in single inverted comma('abc') with get or post method,we will..

Answer / 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

More PHP Interview Questions

client side scripting language Vs server side scripting language

7 Answers   IBM, IRT,


I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

0 Answers  


How can I use single quotes in single quotes in php?

0 Answers  


What is variable and data type?

0 Answers  


How to get useful error messages in php?

0 Answers  






what type of images that the PHP version supports

4 Answers  


What is new static in php?

0 Answers  


How to return ascii value of character in php?

0 Answers  


What is use of header() function in php? What the limitation of header()?

0 Answers  


Does wordpress still use php?

0 Answers  


What is regular expression in php?

0 Answers  


What type of operation is needed when passing values through a form or an url?

0 Answers  


Categories