0

I am coming from Python where assigning [] to a variable creates a list object.

In PHP, what kind of object is $data:

$data = [];

unbutu
  • 125
  • 2
  • 9

1 Answers1

1

Array :

An array stores multiple values in one single variable.

$cars = ["Volvo", "BMW", "Toyota"];
Ramki
  • 452
  • 2
  • 16