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 many different types of messages available in php?
Why we use get in php?
What are the steps for the payment gateway processing?
Why print_r is used in php?
What are super global variables in php?
What is print_r?
What is php stack?
How can you declare a constant variable in php?
Explain the casts allowed in PHP?
Is php a low level language?
HOW we can use css
How to register a variable in PHP session?