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

What is 'float' property in css?

1 Answers  


How many requests will be send to server and response coming from server when you open a web page (e.g. xyz.php) which has an image tag?

3 Answers   Persistent,


What is design pattern? Explain all including singleton pattern?

1 Answers  


What is memcache?

1 Answers  


Explain the difference between $message and $$message?

1 Answers  


1.What is application server ? 2.What is web server ? 3.Explain the process of execution of a php file ?

9 Answers   IBM,


When are you supposed to use endif to end the conditional statement?

1 Answers  


I am a 2007 Passed out, Jobless for almost 2.6 years. I am preparing myself as a Php programmer. Will i get a job in Php and can any one guide me please.

5 Answers   HCL,


When do sessions end?

1 Answers  


What is the difference between htmlentities() and htmlspecialchars()?

0 Answers  


How can I reverse sort an array keeping the correlation between the index and value?

2 Answers   Rushmore Consultancy,


Can we extend two classes in php?

1 Answers  


Categories