How can I retrieve the result from the $avatar
array?
This is what I tried:
I want to get the following(url):
code:
<div id="fotoprofilo"><img src="http://images.instagram.com/profiles/profile_19347213_75sq_0000.jpg"></div>
And php:
$s2 = file_get_contents("http://followgram.me/user");
$avatar = "";
preg_match_all('/fotoprofilo\s*"><img src=".*\b">/', $s2, $avatar);
print_r($avatar[0]);
1) How is the result working?
2) Will it find it? (Because I can't seem to see the value)
Thanks in advance.