Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php echo json

<?php
$data = ['name' => 'John', 'age' => 35];
header('Content-type: Application/json');
echo json_encode($data);
Comment

PREVIOUS NEXT
Code Example
Php :: function exists php 
Php :: php curl post application/x-www-form-urlencoded 
Php :: migrate specific migration laravel 
Php :: laravel favicon 
Php :: get wordpress page link by id 
Php :: select distinct laravel 
Php :: url encode php 
Php :: query sort alphabetically wp 
Php :: orwherebetween laravel 
Php :: Failed to connect to github.com port 443: Connection timed out 
Php :: foreach empty laravel 
Php :: print array php 
Php :: generate autodump laravel 
Php :: laravel clear all cache 
Php :: php curl delete request 
Php :: laravel validation min string length 
Php :: install php 7.3 on amazon linux 2 
Php :: group by codeigniter 3 
Php :: php mysqli connection check 
Php :: laravel validation types for float 
Php :: php artisan serve specify ip 
Php :: var_dump beautifier 
Php :: php yesterday 
Php :: double in migration laravel 
Php :: codeigniter 3 insert 
Php :: create new laravel project with specific version 
Php :: put img in timestamp using php 
Php :: php ping time 
Php :: php utf 8 sqlsrv 
Php :: mobile no validation laravel 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =