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';