Re: [PHP] Re: Comparing string to array

2007-06-19 Thread Richard Davey
Hi Al, Tuesday, June 19, 2007, 1:46:47 PM, you wrote: > preg_grep() or > foreach($_POST as $value){ > if(empty($value)) continue; > $good_stuff[] = $value; > } A classic case of not reading the post fully methinks. Cheers, Rich -- Zend Certified Engineer http://www.corephp.c

[PHP] Re: Comparing string to array

2007-06-19 Thread Al
preg_grep() or foreach($_POST as $value){ if(empty($value)) continue; $good_stuff[] = $value; } Richard Davey wrote: Hi all, Ok it's 2am, my brain has gone to mush and I am having trouble figuring out an easy way to do this, can anyone shed some light? Take a peek at the fo