View Single Post
Old 10-11-2007, 10:36 AM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
Quote:
hat's not quite what I'm after!
then you didn't do a very good job at asking the question. could have saved us both some time.

strstr() finds the first occurrence of a string.

preg_match() finds all occurrences in a string and makes available an array of matches.

Quote:
Can a string be searched for specific characters? - Each time a 6 is found, can "Six" be displayed on the screen, and each time a 5 is found, can "Five" be displayed on the screen.
sure, if you had something setup which related 6 to the string 'Six' and all other possibilities you wanted. i.e. $word_string[6] = 'Six';
__________________
Mike
sde is offline   Reply With Quote