Re: [PHP] Still having ereg migranes

2002-11-21 Thread Marek Kilimajer
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

[PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
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

Re: [PHP] Still having ereg migranes

2002-11-20 Thread Marek Kilimajer
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

RE: [PHP] Still having ereg migranes

2002-11-20 Thread John W. Holmes
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

RE: [PHP] Still having ereg migranes

2002-11-20 Thread Mako Shark
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