How many elements are in the array created by the following line of code: $array = array (true => '5', 1 => '6');
Correct Answer: 1
Explanation:
Note: This Question is unanswered, help us to find answer for this one
PHP Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More PHP MCQ Questions
What is the output? session_start(); $_SESSION['logged_in'] = true; $_SESSION['name'] = 'Jane'; $_SESSION['level'] = 4; echo session_encode();
Which type of variables are instances of programmer-defined classes?
Operator to check if two values are equal and of same data type?
Function to get the number of arguments passed to the function?
Which return true keeping in view the following code? function validateDate($date, $format = 'Y-m-d H:i:s') { $d = DateTime::createFromFormat($format, $date); return $d && $d->format($format) == $date; }
In the PHP code given below, what is/are the properties?
The case expression is used as part of a PHP ____.
What's the output?
There are two objects- $product1 = new Shop(); $product2 = new Shop(); Which is right about them?
Which PHP function returns 'true' if a value already exists in an array?