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 does the identity operator === compare two values?
•How can we submit a form without a submit button
What kind of variable is age?
What is the difference between characters and #?
What are Routines?
What is mvc php?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
How to retrieve the original query string?
What is an associative array?
What is php and why it is used?
What is php how it works?
How to find datatype of variable in php?