This string comes from ajax GET, I have decided to make a option "field".
String: width(400),height(200),age(99),string(test)
How do I split this into this kind of array:
$myArray =
[
'width' => 400,
'height' => 200,
'age' => 99,
'string => 'test'
];
Please take a note that integers has to integers, to make it easier for calculations.