<?php $a = [ 'name' => 'bear', 'age' => 23 ]; $b = []; $c = new stdClass; var_dump(json_encode($a)); var_dump(json_encode($b)); var_dump(json_encode($c));
You have javascript disabled. You will not be able to edit any code.