You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
326 B
PHP
15 lines
326 B
PHP
<?php
|
|
# echo is what is print() in Python
|
|
// echo "hello";
|
|
|
|
$filename = "data.json";
|
|
|
|
$myfile = fopen($filename, "r") or die("Unable to open file!");
|
|
$data = fread($myfile, filesize($filename));
|
|
$data_json = json_decode($data, true);
|
|
|
|
# this will be taken as the response data in js
|
|
var_dump($data_json);
|
|
|
|
fclose($myfile);
|
|
?>
|