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 are the ways we can destroy a session variable ?
What library is used for pdf in php?
Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?
When to use single quotes, double quotes, and backticks?
What is meant by nl2br()?
4 Answers Rushmore Consultancy,
What is the default session out time?
does current version of mysql (myisam) supports foreign keys ?
How can we create a database using php?
Can you extend a final defined class?
Why php script is not running in browser?
Explain the difference between require() and require_once()?
how set session expire time in php?