Re[2]: Comparing string to array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Larry,

Tuesday, June 19, 2007, 2:55:07 AM, you wrote:

> Perhaps you're looking for in_array()?

If only it was that simple! But pray tell how an in_array search is
going to find:

$userparam = "test['bob'][]";

within:

Array
(
    [test] => Array
        (
            ['bob'] => Array
                (
                    [0] => red
                    [1] => green
                    [2] => blue
                )
        )
)

?

The problem is that $userparam in the example above needs to be
expanded out into a form that $_POST can be searched for it. Or vica
versa.

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux