Answers for "php variable array for json encode data"

PHP
8

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 variable array for json encode data

$person = array( 
    "dim" => "2*2", 
    "coloris" => "rouge"
); 
$personJSON=json_encode($person);//returns JSON string
Posted by: Guest on September-22-2021
0

php variable array for json encode data

$person = array( 
    "dim" => "2*2", 
    "coloris" => "rouge"
);
Posted by: Guest on September-22-2021

Browse Popular Code Answers by Language