Loading…

How to create an array in php?

To create an array, we can use the array() construct in PHP.

Example

                                        

Syntax : $array = array( values );

Example : $directors = array( "1", "7", "17", "23" );

Suggest An Answer

No suggestions avaliable!

Latest post from PHP Arrays

Ask Question