Answers for "remove all content and echo json_encode php"

PHP
9

php json_encode

$person = array( 
    "name" => "Johny Carson", 
    "title" => "CTO"
); 
$personJSON=json_encode($person);//returns JSON string
Posted by: Guest on July-01-2019
0

php json_encode remove array index

$arr['dates'] = array_values($arr['dates']);
//..
$arr = json_encode($arr);
Posted by: Guest on September-15-2021

Browse Popular Code Answers by Language