Здравствуйте! имеем массив:
Array
(
[0] => domain:TOSTER.RU
[1] => nserver:ns1.habradns.net.
[2] => nserver:ns2.habradns.net.
[3] => nserver:ns3.habradns.net.
[4] => state: REGISTERED, DELEGATED, VERIFIED
[5] => org: Habr Blockchain Publishing LTD
[6] => registrar: RU-CENTER-RU
[7] => admin-contact:
https://www.nic.ru/whois
[8] => created: 2001-08-06T20:00:00Z
[9] => paid-till: 2019-08-08T21:00:00Z
[10] => free-date: 2019-09-09
[11] => source: TCI
[12] => Last updated on 2019-04-12T23:21:34Z
[13] =>
)
как сделать так?:
Array
(
[domain] => TOSTER.RU
[nserver] => ns1.habradns.net.
[nserver] => ns2.habradns.net.
...
)
Вроде как explode() надо использовать, но что-то не выходит.