Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php header content type json

header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
die();
Comment

PREVIOUS NEXT
Code Example
Php :: fakestore api data in laravel 
Php :: php rce command 
Php :: Simple factory Design pattern in PHP 
Php :: laravel migration int length 
Php :: connect php in sql server 
Php :: @method overide form laravel 
Php :: Laravel Max Helper Function 
Php :: select randomly from mysqli php 
Php :: get dates between two dates using specific interval using carbon 
Php :: no routes.php in http folder 
Php :: check if data inserted in database wordpress plugin 
Php :: Form::select laravel 
Php :: laravel eloquent get x number of results 
Php :: laravel custom validation 
Php :: public variable in php 
Php :: php file iterator 
Php :: validate file count with validate in laravel 
Php :: activerecord yii2 select with limit(start,end) not working 
Php :: laravel collection flatMap 
Php :: php artisan make:widget 
Php :: eloquent firstorcreate 
Php :: laravel blade excerpt from body 
Php :: text to sha256 converter in laravel 
Php :: get chmod of directory php 
Php :: Update Custom Cart Count (or any HTML) after AJAX Add to Cart in WooCommerce 
Php :: Token capabilities in vault 
Php :: how to define a function in scheme 
Php :: how to remove last element from php array 
Php :: install php56 with php73 catalina 
Php :: create qr code png image of 200*200 using phpqrcode 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =