What is happening in the following code
$objA = new A(); // A is a class
$objB = $objA;

Answer Posted / puneet bhatt

variable $objA and varable $objB contains the same value.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a hello world program using variable?

535


Is laravel better than codeigniter?

548


What are the advantages of indexes in php?

565


Can a super () and this () keywords be in same constructor?

482


Will php die?

524






Which function would you use to determine the length of a string in php?

602


How do I check if a given variable is empty?

526


What is apache and php?

491


How are variables declared in php?

549


How can we submit form without a submit button?

551


How to access a specific character in a string?

498


Explain me what is the use of header() function in php?

619


What is the purpose of using php?

505


Do you know how to get the ip address of the client?

516


Is php class name case sensitive?

510