Jump to content

Arrays


sandy1028

Recommended Posts

for($i=0;$i<$cityCount;$i++){

        $city   = $cityname[$i];
        list($count,$centres) = split(":",$centrelist[$city],2);
        $listCentre           = explode(":",$centres);
        
}

      

 

The problem is when I print  $listCentre the output is in 5 arrays.

 

 

If i use $centres in the query only last centres are considered.

 

How to merge the $listCentre into a single array

Link to comment
https://forums.phpfreaks.com/topic/69324-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.