I have some values in an excel file and I want all of them to be an element of the array and there is other data in it.
I know that one way is to copy them one at a time and put them in an array to initialize the statment
An example list that is part of the entire list
Bay Area
Greater Boston
Greater Chicago
Greater Dallas-Ft. Worth
Greater D.C.
Las Vegas
Greater Houston
Greater LA
Greater New York
Greater San Diego
Seattle
South Florida
It is easy to initialize an array with values when there are not as many elements as
$array= array('Bay Area '=>'Bay Area ','Greater Boston'=>'Greater Boston',....)
But I have 70-80 elements, it is a very tedious task to initialize the array, as shown above.
So Guys Is there an alternative or short header for assigning an array with a list of values?
Is there any automatic array generator tool?
source
share