View Single Post
  #9  
Old 05-23-2007, 06:02 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
oh, i see. Nevermind, i thought you meant something else.

You could do something like:

PHP Code:
array = {"foo1""foo2""bar1""foo3""baz1"};

for (
0;i<=array.size()-1;i++) {
if (array[
i].starts("foo")) {
echo(
i);
}

__________________

Coming soon (Hopefully:P)
Reply With Quote