I'm new to php, and I want to use the .php file act as api, so when I call that .php file from the front end via fetch or axios or any other way, then It will return the data in json format.
Asked
Active
Viewed 256 times
2 Answers
0
there is a lot of "fake" api to make test here's one https://jsonplaceholder.typicode.com/
Farouk YD
- 102
- 2
- 7
0
I think this solves your question, is to pass php data to front
I would change only the call to your path or php file
Jean Paul
- 101
- 1
- 3