um... cant think of a title
Posted: Thu Aug 29, 2002 4:28 pm
is there a function or something in php which will allow you to guess at something...
like what i mean is in my items colum in the db looks something like this...
sword, cape, giant ship[b,ht,s], hat, bag[seed1,seed2]
now i exploded that into $iii (dont ask about the name), now i'm looping through the items in $iii with a while statement... and i want to see if they have a ship... but the problem is is that if i just go if ($iii[$x] == 'giant ship[b,ht,s]') it will only get all people that have that specifications.. (the stuff in the square brakets).
but what i want is it to just guess kinda.. like get the closes to giant ship or ship... without the [b,s,ht] stuff .. see all i want to do is check that it exists not that it has any specifications....
if you understnad that GREAT!!!
if not
damn
like what i mean is in my items colum in the db looks something like this...
sword, cape, giant ship[b,ht,s], hat, bag[seed1,seed2]
now i exploded that into $iii (dont ask about the name), now i'm looping through the items in $iii with a while statement... and i want to see if they have a ship... but the problem is is that if i just go if ($iii[$x] == 'giant ship[b,ht,s]') it will only get all people that have that specifications.. (the stuff in the square brakets).
but what i want is it to just guess kinda.. like get the closes to giant ship or ship... without the [b,s,ht] stuff .. see all i want to do is check that it exists not that it has any specifications....
if you understnad that GREAT!!!