in reply to Re^3: Alternative matches
in thread Alternative matches
for however many words there are. You'd have to modify that if for every new word you added, which would soon turn intoindex($string,'new') > -1 ||
That is a lot of cut'n'pasting and this is not what programmers do. What you'd do is write a function to loop over an array like I did.index($string,'new') > -1 || index($string,'old') > -1 || index($string,'number') > -1 || index($string,'start') > -1 || index($string,'simple') > -1 || index($string,'cross') > -1 || index($string,'heavy') > -1 || index($string,'die') > -1 || index($string,'exit') > -1 || ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Alternative matches
by Eimi Metamorphoumai (Deacon) on Oct 06, 2004 at 12:48 UTC | |
by PodMaster (Abbot) on Oct 06, 2004 at 13:02 UTC | |
|
Re^5: Alternative matches
by foss_city (Novice) on Oct 06, 2004 at 12:39 UTC | |
by PodMaster (Abbot) on Oct 06, 2004 at 12:54 UTC |