So, I’m starting a new project and working with php for the first time.
I get that the average definition and functioning of arrays in php is actually pretty much a namevalue combo.
Is there some syntax, API, or other terminology for just a simple list of items?
I.e. inserting something like ['example','example2','example3','example4'] that I can just call based off their index position of the array, without having to go in and modify the syntax to include 0 => 'example', etc…
This is a very shortlived array so im not worried about long term accessibility
php arrays are simple to use. You can insert into an array like:
Or
or
and call them by their index values:
this will give you
a