I think you should really ask at a unix list
Mako Shark wrote:
Heheh. Maybe I wasn't clear, or maybe I'm missing
something.
Well, one way without regex would be to explode()
numbers on a comma and use in_array() to see if
you're value exists.
That should look for your number, preceded by
Sorry to repost this, but I haven't found a solution
and it's still nagging me. Maybe some of you can come
up with something I can't. Here was my original post:
I've made myself an INPUT TYPE=HIDDEN tag that
contains in the value attribute a list of
comma-delimited numbers. I need to find if a
first way:
if(ereg('([^0-9]|^)'.$your_number.'([^0-9]|$)',$_REQUEST['numbers']) )
second way:
$numbers=explode(',',$_REQUEST['numbers']);
if(in_array($your_number,$numbers))
Mako Shark wrote:
Sorry to repost this, but I haven't found a solution
and it's still nagging me. Maybe some of you can
Sorry to repost this, but I haven't found a solution
and it's still nagging me. Maybe some of you can come
up with something I can't. Here was my original post:
I've made myself an INPUT TYPE=HIDDEN tag that
contains in the value attribute a list of
comma-delimited numbers. I need to find
first way:
if(ereg('([^0-9]|^)'.$your_number.'([^0-9]|$)',$_REQUEST['numbers'])
) second way:
$numbers=explode(',',$_REQUEST['numbers']);
if(in_array($your_number,$numbers))
Not sure I get this but, again, I can't use $_REQUEST
or explode or in_array at this point. The entire
process needs to
5 matches
Mail list logo