PHP COURSE • LESSON 54
Create API With PHP
APIs allow applications to communicate with each other.
api.php
<?php
header(
"Content-Type: application/json"
);
$data=[
"name"=>"EDUHUB",
"type"=>"Learning Platform"
];
echo json_encode($data);
?>