Answer Posted / muthu
Variables in PHP declared with $ symbol immediately
followed by alphabets or underscore. We can use variables
without declaring also. But if we are accessing one
variable without assigning values, then we will get warning
messages.
For example
<?php
$a=10;
if($a==2)
$b=20;
echo $b;
?>
This will throw warning messages.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of token in php?
Can I learn php without knowing c?
What is the use of is_array() and in_array()?
What is data type in php?
How many records can be stored in mysql table?
What is the major php security hole? How to avoid?
How can we enable error reporting in php?
How to include a file code in different files in php?
Why php is better?
Is php a low level language?
Explain me what are the main error types in php and how do they differ?
List data types in PHP?
What is restful api?
What is difference between get and post?
How to open standard output as a file handle?