Sorry for such a long description but I'm struggling with the merging of multiple multi-dimensional associative arrays for more than a day now. Can an ...
Sorry for such a long description but I'm struggling with the merging of multiple multi-dimensional associative arrays for more than a day now. Can an ...
the echo outputs: in walk Lifting Heavy Boxes [12/18/17] (my_form) the print_r outputs: I have another array walk that is very similar that is ...
I have associative array and value related with that key contain json_encoded data so I converted it and it resulted in array,I am using array_walk to ...
I have the problem that I get the error PHP Fatal error: Call-time pass-by-reference has been removed in.... I discovered some similar question ...
I have a function for arrays that I insert in db. I formatted it correctly and given output is with: and the result of one of the rows that is i ...
I have a PHP array in the following format: I'm trying to use the array_walk() function in PHP to rearrange the array keys as follows: I'm using ...
I am working with users data inside array and I want to print user data inside html table without using foreach loop but alternative of that using arr ...
I want to print all user names one by one which is array format, so instead of using foreach loop I am using array_walk() and it is printing all user ...
I am trying to add a question and I have 4 options for that question. Among those options, only one will be the correct of course. But, after submitti ...
I am trying to replace array value with specific condition. Suppose array $mark has following value Just normal checking value it is echoing corre ...
I need to print only one sub_title of first child(1955) array. Here is some sample code (that works) to show what I mean. ...
I have an array in PHP. The array could be X deep. Somewhere in the array is an object with key custom_image. I want to replace the object with my own ...
I would like to search through a multidimensional array and return the value of the first key found. For example I am working with some geo tools and ...
I'm wring a PHP script to group some payment info using date. part of original array is like this. I wrote some codes to group those by date. here ...
I am trying to do this as efficiently as possible. I have multiple arrays: I want to add these arrays together with a desired output of Year/Month ...
I have two different arrays Array 1: and Array 2 I have used array_flip for second array($dateRanges), so please dont get confused the the val ...
I need to use an incremented value for the index orders2 of the array and I have tried the following: Which says $i is unknown in the line $i++;. ...
I have a simple piece of code that isn't working as I would expect it would, could someone please explain why it isn't populating the fields array and ...
I have a deep multidimensional array that I am needing to extract the value of a specific key. I have found that the array_walk_recursive function wil ...
I have looked through a few answers on here but that don't seem to utilise this method? I have an array of items, and the items are objects. The obje ...