Jump to content

Arrays


sandy1028

Recommended Posts

Hi,

 

Please help me with this problem

 

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

When i give print $listCentre

The output is Array Array Array Array Array

$listCentre[0] contains 5 values and $listcentre[1] contains 3 values

 

I want all the values in a single array.

 

I have to merge $listCentre[1] and $listCentre[2] and $listCentre[3] in a single array called $list

 

 

How can I do it

Link to comment
https://forums.phpfreaks.com/topic/78192-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.