That's sex.PHP Code:<?php
$string = "Hello World"; //Our string
$match = "/\bHello\b/i"; //Our compare for the word Hello
if(preg_match($match, $string) !==0); //Checks for match
echo "Success! There's a match!"; //If they match, says success!
}
else { //No match
echo "Sorry, no match found";
}
?>


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
					
					 
  Fluidcoding unoffice post - Simple string searching
 Fluidcoding unoffice post - Simple string searching
		

 Reply With Quote
 Reply With Quote Visit Homepage
				Visit Homepage
			 
 





