What is happening in the following code
$objA = new A(); // A is a class
$objB = $objA;
Answer Posted / 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 |
Post New Answer View All Answers
A process can run only in the background. State Whether True or False?
What is the use of isset() in php?
What is $_ server request_method == post?
How to Retrieve a Cookie Value?
How to convert strings to numbers in php?
What is the purpose of a query?
Tell us what is the difference between session_unregister() and session_unset()?
What is the alternative structure for control structures?
What are the differences between require and include?
What is session cookies php?
What library is used for pdf in php?
Is facebook still written in php?
What is a php session?
How to calculate the length of a string?
List some features of php that are deprecated in php