Answers for "convertir array en json php"

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 "convertir array en json php"

Browse Popular Code Answers by Language