Laurence Schellevisch Laurence Schellevisch - 1 year ago 67
PHP Question

Array with key that holds multple info needs to be filtered into a id name etc

I am using a api call to get info of holders of domains

But the api returns a array with a key that holds id,name,company etc... in one key


array (
[0] => 4432;name;companyname;adress;email;city,
[1] => 4432;name;companyname;adress;email;city

and i need it seperated like this and not one long key with all the info

array (0 => array ([id] => 4432, [name] => name, [company] => companyname))

it doenst have to be a array if i atleast can filter the id name etc


Answer Source
$array = explode(';',$string);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download