a basic array question!

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

 



feel kind of foolish posting this.. but i can't seem to figure it out for
now..

i have an array, i can do a print_r($foo) and get the following:
Array
(
    [bookmark] => 1
    [facets] => Array
        (
            [0] => Array
                (
                    [lastname] => <form id="facet-lastname">
<input type="hidden" name="list" value="" />
<input type="hidden" name="offset" value="0" />
<input type="hidden" name="orderBy" value="username" />
<input type="hidden" name="sort" value="asc" />
<strong>Name:</strong>
	<input type="text" name="_lastname" value="" style="width: 125px" />
	<input type="submit" value="Search" />
</form>
		    }

i simply need to know how to get the actual value of an element ('lastname')
to do:
$cat = $foo->facets[0]->['lastname'] (obviously, this doesn't work!!)

i've tried a variety of possible choices, with no luck...

any ideas/thoughts/etc...

thanks

bruce
bedouglas@xxxxxxxxxxxxx

-- 
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