I have a curl function which outputs the following text from an api.
number=1&id=731&name=test&value=6311
How could I make a variable which will store one of these values in the text such as I want to make a variable called $name
which will have the 'test' value from the output of the api. I saw different things such as in json you can use $variable['name']
but it doesn't seem to work like this.. help