i'm trying to receive a response from an url as :
$result = file_get_contents('http://example.com/api/test');
it simply returns some informations separated by |
example :
info1|info2|info3
i want to get that result as an array
something like $result = array(file_get_contents('http://example.com/api/test'));
I just got involved in php stuffs excuse me for any confusing terms !
php explodeexplode()to turn it into an array. Here is a link: php.net/manual/en/function.explode.php