Tuesday, 13 August 2013

PHP explode text to array

PHP explode text to array

I am trying to convert the contents of this link (only the Country/code
list) into an array. To do so I tried using explode(), but exploding on
\r, \n, \r\n, or \n\r doesn't work.
Anybody knows what they are using? I only need the country name and the 2
letter-code.

No comments:

Post a Comment