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! 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"; ?> 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. ^.^ 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
Archived
This topic is now archived and is closed to further replies.