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 |
What is the use of header() function in php?
How to take a substring from a given string in php?
How long do php sessions last?
What is final keyword in php?
What are the difference between abstract class and interface?
What function do we use to find length of string, and length of array?
How does php strcmp work?
What is the importance of parser in php?
How do you execute a php script from the command line?
How to remove an empty directory?
how to use particular city location in php?
How can we know the count/number of elements of an array?