My array is like: (Below is the dump extract)
array(3) {
[0]=> array(2) {
[0]=> string(4) "0013"
[1]=> float(28.936563322435)
}
[1]=> array(2) {
[0]=> string(4) "0003"
[1]=> float(35.514521271921)
}
[2]=> array(2) {
[0]=> string(4) "0007"
[1]=> float(47.577230340278)
}
I would like to extract its 1st value like 0013
or 0007
etc into a variable say $order
such that the final result is something like this
$order= "0013,0003,0007";
I tried to do something like this:
foreach($array as $x){
$order = x[0].",";
}
BUT it only extracts the first element