Linked Questions

1 vote
1 answer
100 views

i have an array like this <?php Array ( [0] => Array ( ['a'] =>'David' ['b'] => 'Paul' [0] => 'Tom' ...
Salmen Bejaoui's user avatar
0 votes
1 answer
92 views

I have an array which looks like (var_dump): array (size=3) 0 => array (size=8) 'id' => string '1' (length=1) 'user_id' => string '64' (length=2) 'level' => string '1' (length=1)...
Nicholas Mordecai's user avatar
0 votes
4 answers
110 views

I have a big associative array with over 1 000 items and I want to rename one key but the order must be preserved. I don't wont to iterate over the complete array and copy it into a new.
mabe.berlin's user avatar
  • 1,083
-1 votes
2 answers
83 views

Hello. im having this code: public function parse_reports($filename) { $result = array(); $fp = fopen($filename, "r"); if (($headers = fgetcsv($fp, 0, "\t")) !== FALSE) if ($...
zekephp's user avatar
  • 33
0 votes
1 answer
58 views

I have an array: $array = [ 'foo' => 44, 'bar' => 77, 'moo' => 88, ]; Now I have two variables, $key and $value, and I want to replace the first index of the array. So remove foo and 44, and ...
ditto's user avatar
  • 6,417
0 votes
2 answers
53 views

aside from doing the actual work of iterating through an associative array, pushing a value into a new array and setting that equal the array of remaining fields, is there an array function built into ...
Marco 's user avatar
  • 35
0 votes
1 answer
55 views

there I have a question in array manipulate. I have a source array like this array:6 [ 0 => array:13 [ "id" => 1 "name" => "companyName" "code" => "1" "orderNumber" =&...
Tony Gao's user avatar
0 votes
0 answers
44 views

I have this array: $rows = array_map(function($item) { return (object) ['c' => [ (object) ['v' => $item->job_type, 'f' => null], (object) ['v' => intval($item->count), 'f' =&...
joun's user avatar
  • 664
0 votes
1 answer
26 views

I have an array that contains year as follows. This key is going to be dynamic. NowI want to replace new_2018 to "2018". $array = array( array( "new_2018" => "john", ) ); I have ...
user1687891's user avatar

15 30 50 per page
1 2 3
4