Laurence Schellevisch Laurence Schellevisch - 1 month ago 8
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

example

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

Laurence

Answer
$array = explode(';',$string);