i ttreid this code to give him as a example
Code: Select all
<?
function url($var)
{
if (strstr($var, “image”))
return true;
else
return false;
}
$array1 = array("www.dev.com/hello.php", "www.dev.com/image/hello.jpg","www.dev.com/image/mayank.jpg");
print_r(array_filter($array1, "url"));
?>Array ( [0] => http://www.dev.com/hello.php )
whre is the prob
[0] =>