Skip to main content
11 events
when toggle format what by license comment
Jan 8, 2020 at 8:03 vote accept Andreas Hunter
Jan 8, 2020 at 8:03 comment added Andreas Hunter Yes it is work @mickmackusa
Jan 8, 2020 at 6:43 history edited mickmackusa CC BY-SA 4.0
added conditionals at the request of OP
Jan 8, 2020 at 6:40 comment added mickmackusa Does that $userFilter declaration work as intended?
Jan 8, 2020 at 6:26 comment added Andreas Hunter I've change part of your code. Because it is not work for me correctly. You can see changed part of code here. Please update your answer then I'll accept it. @mickmackusa
Jan 8, 2020 at 5:52 vote accept Andreas Hunter
Jan 8, 2020 at 6:11
Jan 7, 2020 at 1:52 history edited mickmackusa CC BY-SA 4.0
added 4289 characters in body
Jan 6, 2020 at 16:54 comment added slepic I have no idea, those arrays are passed to methods I know nothing about. But OP got rid of the keys, so I was just pointing out that your solution is not equivalent. OP should know whether it matters in his case...
Jan 6, 2020 at 12:26 comment added mickmackusa Why are the keys important? Do you see something to suggest that the array needs to be reindexed, or that it isn't already indexed?
Jan 6, 2020 at 9:58 comment added slepic Idk why it was important to remove the keys, but just casting to Array no longer removes the keys. array_values could be used to retain the original behaviour.
Jan 6, 2020 at 7:44 history answered mickmackusa CC BY-SA 4.0