What is happening in the following code
$objA = new A(); // A is a class
$objB = $objA;
Answers were Sorted based on User's Feedback
Answer / prakash
The object variable $objA and $objB is contains the same
value. The $objA is get the value and to assign the value
to $objB. So both are contains the same value in the
program.
| Is This Answer Correct ? | 13 Yes | 5 No |
Answer / puneet bhatt
variable $objA and varable $objB contains the same value.
| Is This Answer Correct ? | 1 Yes | 2 No |
How can we get the browser properties using PHP?
4 Answers Google, Pollux Softech,
What is meant by nl2br()?
4 Answers Rushmore Consultancy,
Whether it is possible to share a single instance of a memcache between multiple php projects?
What is $_ request?
How to write a program to make chess?
Is php coding easy?
What are interfaces in php?
What is a php array?
Why many companies are switching their current business language to php? Where php basically used?
What is the difference between == and === in php?
Tell me how to execute an sql query? How to fetch its result?
What is the function mysql_pconnect() usefull for?