Answers for "json {"1":"a","2":"b","

PHP
3

php echo json

<?php
$data = ['name' => 'John', 'age' => 35];
header('Content-type: Application/json');
echo json_encode($data);
Posted by: Guest on September-25-2020

Code answers related to "json {"1":"a","2":"b","

Browse Popular Code Answers by Language