2

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

2
  • Hmm...something's off here. Either that API is horribly designed, you're not calling the proper end-point or not calling it with the right parameters. Does this API have some sort of documentation?
    – Andrei
    Commented Oct 25, 2016 at 11:49
  • @Andrew i am calling the right end of the api my boss gave me this api to work with. and yes the api is bad. also i have read the documentation and there is no other way to call holders the use the function getholders that returns the array above
    – Laurence
    Commented Oct 25, 2016 at 12:10

1 Answer 1

2
$array = explode(';',$string);
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.