How escape single quotes php?



How escape single quotes php?..

Answer / Anmol Kumar

To escape single quotes in PHP, you can use a backslash (). For example: $string = 'Don't';

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What are html entities?

1 Answers  


What are the new features in php 7?

1 Answers  


What is session and why do we use it?

1 Answers  


What are the variables in php?

1 Answers  


How long should a session last?

1 Answers  


How can we find the number of rows in a result set using PHP?

4 Answers  


What are the different types of errors in PHP?

5 Answers  


How many keywords are there in php?

1 Answers  


1. Write a function to swap two values ? $a = 10; $b = 20; echo $a, $b; swap(); // If u want u can pass parameters echo $a, $b; // It should print 20 , 10

14 Answers   Aquasol, Infosys, TCS, Torque Infotech,


What are the features of php 7?

1 Answers  


Write syntax to open a file in php?

1 Answers  


Is php difficult to learn?

1 Answers  


Categories