In PHP, to declare an array, you use the array() function or the [] ______.
- syntax
- operator
- delimiter
- symbol
In PHP, to declare an array, you can use the array() function or the [] operator, also known as the array shorthand syntax. The [] operator provides a concise way to define an array directly without invoking the array() function. Both forms are valid and interchangeable for declaring arrays in PHP. Learn more: https://www.php.net/manual/en/language.types.array.php#language.types.array.syntax
Loading...
Related Quiz
- What is the do...while loop used for in PHP?
- What are the three classes of errors that can occur in PHP?
- The print statement in PHP can output multiple parameters at once.
- The do...while loop in PHP will not execute its block of code if the condition is initially false.
- Which of the following is a comparison operator in PHP?