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
  • 73
  • 1
  • 8

1 Answers1

1

Array :

An array stores multiple values in one single variable.

$cars = ["Volvo", "BMW", "Toyota"];
Ramki
  • 659
  • 1
  • 15