Hello, I can not think of an algorithm to make a one-dimensional one from a multidimensional array. There is such a two-dimensional array:

Array ( [0] => Array ( [entry_id] => 1 [user_id] => 1 [title] => [QUOTE]123vbbbbbbbbbbbbbbbbbt[/QUOTE] [post_date] => 1459870957 [reply_count] => 0 [view_count] => 59 ) [1] => Array ( [entry_id] => 2 [user_id] => 1 [title] => ddddd [post_date] => 1459882684 [reply_count] => 0 [view_count] => 18 ) 

At the output, form such a one-dimensional array

 Array ( [entry_id] => 1 [user_id] => 1 [title] => [QUOTE]123vbbbbbbbbbbbbbbbbbt[/QUOTE] [post_date] => 1459870957 [reply_count] => 0 [view_count] => 59 ) Array ( [entry_id] => 2 [user_id] => 1 [title] => ddddd [post_date] => 1459882684 [reply_count] => 0 [view_count] => 18 ) 
  • You have two one-dimensional arrays at the output, judging by the example. Did you mean it? - Alexey Shimansky
  • That's right - kok's
  • one
    and what does not suit to access these arrays $arrray[0] ? better a bunch of variables $ array0, ... - splash58
  • The fact is that the array needs to be rendered into a view, and the view does not provide for parsing a two-dimensional array - kok's
  • put $ arrray [0] into the "view", $ arrray [1] ... this is the usual foreach will do - splash58

0