Hi;
why i could not print out the 2 elements from the array of the final, it just print out the "Array"
Could anyone help, thanks
<?php
$string="talking animails and get rid off talking about this facebook";
$term="talking a";
preg_match_all("/talking a[a-zA-Z]*/", $string,$final);
$i=0;
while($i<2){
echo $final[$i];
$i++;
}
?>