I'm using php.
I have the following text in a variable:
X-Inquiry-Name: analia felices
X-Inquiry-Adults: 5
X-Inquiry-Children: 10
I would like to be transforming into an array, separating these two points, more or less as an example below:
array (
[X-Inquiry-Name] => analia felices
[X-Inquiry-Adults] => 5
[X-Inquiry-Children] => 10
)
I tried to fetch a function from the link but could not find something to do that. does anyone remember some function to do this?