Which One Of The Following Php Statements Is Truep Pre Langphp #354
Which one of the following PHP statements is true?</p> <pre><code class="language-php" line="1"> class CopyMe {} $first = new CopyMe(); $second = $first; </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 Objects and Databases - PHP Object Advanced Features - Quiz No.3.
Which one of the following PHP statements is true?
class CopyMe {} $first = new CopyMe(); $second = $first;
In PHP 4: $second and $first are 2 distinct objects
In PHP 5: $second and $first are 2 distinct objects
In PHP 4: $second and $first refer to one object
None of the mentioned