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 does a dependant variable mean?
Which cryptographic functions in php returns the longest hash value?
How to assigning a new character in a string using php?
How to convert a character to an ascii value?
How to create a session? How to set a value in session? How to remove data from a session?
What is data abstraction in php?
What is use of htmlspecialchars php?
What is the php function that removes the last element of the array and returns it?
What are different types of runtime errors in php?
Does php support overloading?
What is the importance of "action" attribute in a html form?
What is stripslashes php?
How to return ascii value of character in php?
How does the identity operator ===compare two values in PHP?
What is a model in php?