Php – Not select the "id" line from the json code
here I have a function to create a category. I need to select all subcategories and create a json code with them, and in it organized categories according to their subid function unflattenArray($flatArray){ $refs = array(); $result = array(); while(count($flatArray)…