If the variable $a is equal to 5 and variable $b is equal to
character a, what’s the value of $$b?
Can anyone explain how's the value of $$b=100
Answer Posted / modi[achir communication]
<?
$a=5;
$b='a';
$$b=100;
$b is a simple variable and $$b is a reference variable that
means in memory $$b will be refer to $b. Suppose in memory
$b variable is in address 100 then $$b will be refer $b at
address 100 that means $$b will contain 100.
?>
| Is This Answer Correct ? | 11 Yes | 15 No |
Post New Answer View All Answers
What is super keyword in c++?
What is php and its uses?
How does the identity operator === compare two values?
What’s the special meaning of __sleep and __wakeup?
What is the meaning of "enctype= multipart/form-data" ?
Can you use php and javascript together?
What is zend studio for?
What is substr() in php? And how it is used?
Php error constants and their descriptions
How to select a database?
What is mysql_fetch_object?
What is the basic function to search files for lines (or other units of text) that contain a pattern.
What is implode() in php?
How do I display php errors?
How to create a mysql connection in php?