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
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *