I am using a module to create booking orders in my website.
They have a hook I can use which fires after a new booking is created.
The variable I get is booking_form: Inside this variable is the following:
text^name1^PETER~text^secondname1^SMITH~text^phone1^023482348~text^adres1^STREETAVENUE 1B~text^postcode1^91201CA~text^woonplaats1^LIVINGPLACE~email^email1^peter@example.com
Is there someway in PHP to get all the values of all the fields in an array or something? So something like this?
array(
name or name1? => PETER,
secondname => SMITH,
etc... => etc...
)
So the function has to split the string based on the ^ and ~ characters.