0
The server contains a.txt file (http://192.168.27. 3/list.txt) with the following information:
[
{
"Nome": "Hemerson",
"data": "05/11",
},
{
"Nome": "Hemerson",
"data": "06/11",
}
]
I am wanting to get the information of the last name and date I would like to display on a page like this:
http://192.168.27. 3/api/create_post/? name=Hemerson&data=05/11
this way I can send to my database.
Ola Lauro worked the decoding only one more doubt if I want to get the start instead of the last position as it would be put so it did not work $ultimo = start($Decode);
– Hemerson Prestes
Hello friends solved instead of $last = end($Decode); that would be it : $last = reset ($Decode);
– Hemerson Prestes