<?php
// the entire array
$array = Array
(
0 => 'stdClass Object'
(
'job_id' => 77,
'signers_id' => 2,
's_last_name' => 'Tesarski',
's_first_name' => 'Karolina',
'fk_comp_id' => 2,
'comp_name' => 'Qart'
),
1 => stdClass Object
(
'job_id' => 83,
'signers_id' => 1,
's_last_name' => 'McLeary',
's_first_name' => 'Eon',
'fk_comp_id' => 3,
'comp_name' => 'REI'
),
2 => stdClass Object
(
'job_id' => 83,
'signers_id' => 4,
's_last_name' => 'McLeary',
's_first_name' => 'James',
'fk_comp_id' => 3,
'comp_name' => 'REI'
),
3 => stdClass Object
(
'job_id' => 84,
'signers_id' => 3,
's_last_name' => 'Hally',
's_first_name' => 'Marvin',
'fk_comp_id' => 4,
'comp_name' => 'Starbucks'
)
);
foreach($array as $row){
//echos job_id
//echo $arr0['job_id'] . "\n";
$group[] = $row->job_id;
//$key_list = $key;
}
echo implode("\n", $group);
- Output for 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in /in/uvOH6 on line 7
Process exited with code 255. - Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Parse error: syntax error, unexpected '(', expecting ')' in /in/uvOH6 on line 6
Process exited with code 255.
preferences:
164.35 ms | 1395 KiB | 26 Q