Quantcast
Channel: Implode an array without first element - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Implode an array without first element

$
0
0

I have an array like this:

[0]=>array( [cname] => ABC            [12] => 60.7500            [13] => 33.7500            [14] => 47.7500            [15] => 86.0000            [16] => 62.2500            [17] => 59.5000            [18] => 78.0000            [19] => 42.7500            [20] => 36.0000            [21] => 40.0000            [22] => 40.0000            [23] => 24.0000    ))

Now, I have to print the cname in one field and in next field I have to print its data using implode function. It works fine. But When I implode it, it also gives the company name as well, which I do not want.

Desired Result:

Name: ABCData: 60.7500, 33.7500, 47.7500 ....

How can I skip the first element using implode?


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>