Search
 
SCRIPT & CODE EXAMPLE
 

PHP

content-type application/json php

<?php
$data = /** whatever you're serializing **/;
header('Content-Type: application/json; charset=utf-8');
echo json_encode($data);
Comment

PREVIOUS NEXT
Code Example
Php :: laravel foreach else 
Php :: clear bootstrap cache laravel 
Php :: drupal 8 get all nodes of type 
Php :: laravel migation error 
Php :: php server referer 
Php :: laravel logout 
Php :: php string to int 
Php :: url decode function in php 
Php :: get am/pm from date in php 
Php :: php does property exist 
Php :: get term thumbnail 
Php :: download php7.4-mbstring ubuntu 
Php :: delete folder laravel 
Php :: php isarray 
Php :: php stdclass to array 
Php :: wordpress custom theme style.css 
Php :: laravel keep old input 
Php :: this load session codeigniter 
Php :: Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. 
Php :: sleep microseconds php 
Php :: php calculate date difference 
Php :: php remove parentheses and contents from string 
Php :: importing current year in laravel blade 
Php :: get user ip laravel 
Php :: php find keyword in string 
Php :: check if table exists sql php 
Php :: php convert array to object 
Php :: php get first character of string 
Php :: laravel where is null 
Php :: if is cart page woocommerce 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =