What I need:
-
number separated by (,) .
like : 42166 ,42167 , 42168,42169 etc.
problem im facing :
the number is not appended by(,).
im using implode function.
Array Structure:
Array
(
[id] => 42166
[Company_Website] => http://www.amphenol-highspeed.com/
[company_name] => Amphenol High Speed Interconnect
[city_name] => New York
[country_name] => USA
[comp_img] =>
)
42166Array
(
[id] => 42167
[Company_Website] => http://www.clearfieldconnection.com/
[company_name] => Clearfield, Inc.
[city_name] => Plymouth
[country_name] => USA
[comp_img] =>
)
Php Code:
foreach ($result as $key=>$value) {
echo $company_id= implode(",",(array)$value['id']);
}
output im getting: 412664127741288 etc.