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 |
Does php require a web server?
What is meant by pdo in php?
What is if isset ($_ post submit )) in php?
What is the difference between single-quoted and double-quoted strings in php?
Explain what is smarty?
Difference between $message vs. $$Message in php.
How to remove an empty directory?
how to get server date and time?
Does php has a future?
Is it more secure to use cookies to trfer session ids?
Tell me will a comparison of an integer 12 and a string "13" work in php?
What is the role of the .htaccess file in php?