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
How to know user has read the email-php?
What is the use of array_count_values() in php?
What happens when submit button is clicked?
With a heredoc syntax, do I get variable substitution inside the heredoc contents?
How to Retrieve the Session ID of the Current Session?
What is cookie in php with example?
How many types of php frameworks are there?
What is session data?
Give the case where we can use get and we can use post methods?
Is jquery better than javascript?
Is it possible to extend the execution time of a php script?
What is final class and final method in php?
How to set session.gc_maxlifetime properly?
Is array function in php?
What is the difference between require_once and require in php?