[Solved] Echo an array value


Try this:

$variable = $row['introtext'];
preg_match_all('/(src)=[^ ]+(\.gif|\.jpg|\.jpeg|\.png)/',$variable, $out);
print_r($out[0][0]);
echo "http://mysiteurl.com/".$out[0][0]." ";

Read more about preg_match_all here

0

solved Echo an array value