Answers for "return json response in php & mysql using ajax and jquery"

PHP
1

php return json data to ajax

header('Content-Type: application/json'); 

$colors = array("red","blue","green");
echo json_encode($colors);
Posted by: Guest on October-30-2019
0

php json response to ajax

<?php
 echo json_encode($data);
?>
Posted by: Guest on September-08-2020

Code answers related to "return json response in php & mysql using ajax and jquery"

Browse Popular Code Answers by Language