kernelgpf Posted October 20, 2007 Share Posted October 20, 2007 I'm trying to find the word "dragon" in "$row[foranimal]".. how would I do this? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/74107-solved-find-a-certain-string-in-a-string/ Share on other sites More sharing options...
pocobueno1388 Posted October 20, 2007 Share Posted October 20, 2007 <?php $row['foranimal'] = "jlfdsjfdragonlll"; if (strstr($row['foranimal'], 'dragon')) echo "Found"; else echo "Not Found"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/74107-solved-find-a-certain-string-in-a-string/#findComment-374169 Share on other sites More sharing options...
kernelgpf Posted October 20, 2007 Author Share Posted October 20, 2007 Thankies. ^.^ Quote Link to comment https://forums.phpfreaks.com/topic/74107-solved-find-a-certain-string-in-a-string/#findComment-374170 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.