How can we determine whether a variable is set?



How can we determine whether a variable is set?..

Answer / Kanishk Kumar Tiwari

In PHP, you can use the `isset()` function to check if a variable is set. It returns `true` if the variable is set and contains any value (including an empty string or NULL). For example: `isset($myVariable);`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What version of php do I have windows?

1 Answers  


How to get the number of characters in a string?

1 Answers  


What are the method available in form submitting?

1 Answers  


Why does php need server?

1 Answers  


Whether One-line comment begin with pound sing(#) in php?

2 Answers  


Is php used anymore?

1 Answers  


What is json php?

1 Answers  


Explain me difference between mysql_connect and mysql_pconnect?

1 Answers  


How to Define a Constant in PHP? Is $ symbol necessary?

6 Answers   Maples,


Is php session id unique?

1 Answers  


Why does php start with variables?

1 Answers  


What is different between software and app

1 Answers  


Categories