hello
I am new to php and i am trying to split a statement and trying to validate it but its giving me T_IF error. Can i call "if" to validate Arrays?
My script is following;
$__strText = "love,is,life/noew,0,<a href,o";
$__chunk = explode(",",$__strText);
foreach ($__chunk as $html) {
$counter = $counter +1
If ($html == "<a href")
{
echo "$counter found";
}
}
Thanks for your help



Reply With Quote


Bookmarks