Advertisement
krot

array_reduce implode

Mar 2nd, 2018
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.13 KB | None | 0 0
  1. $result=array_reduce($this->aa['text'],function ($carry , $item){
  2.                 return ($carry)?$carry.', '.$item['v']:$item['v'];
  3.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement