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 eit
<>
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 happen in the shell_exec() command,
because I'd much rather have that handle the whole
shebang than PHP.
__
Do you Yahoo!?
Yah
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 either
> the beginning of the string or a comma and followed
>
> 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 tag that
> contains in the value attribute a list of
> comma-delimited numbers. I need to find if a certai
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 co
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 tag that
contains in the value attribute a list of
comma-delimited numbers. I need to find if a certain
number is in
6 matches
Mail list logo