Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $a=[1=>1,'"hj'=>null,'hh'=>[1=>2,'h'=>null]];
- array_walk_recursive($a, function (&$item, $key)
- {
- //$item = utf8_encode($item);
- $item=is_null($item)?'':$item;
- });
- $a=json_encode($a );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement