Quote:
Originally Posted by mkx
hmm still having problems. how do I just echo a certain array. I got it to output:
Code:
Array ( [0] => 0 [1] => OK" [2] => +974941949", [3] => 09/12/15,03:06:18+00
So say I wanted to echo array 2 (+974941949), how would I echo it? I tried several variations such as
echo $array(2);
echo $array[2];
$array[2] = $hello; echo $hello;
etc, just cant seem to figure it out
|
Replace
$arrays with $arrays[3]
Code:
$contents = file_get_contents("at.php");
$arrays = explode('+CT:', $contents);
//print_r($arrays);
print_r($arrays[3]);