MCQs > IT & Programming > PHP > Final structure of the following array? $animals = array( 'dog', 'cat', true => 'lion' );

PHP MCQs

What will be the final structure of the following array? $animals = array( 'dog', 'cat', true => 'lion' );

Answer

Correct Answer: array( 0 => 'dog', 1 => 'lion' ) - boolean true will be changed to integer 1

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it