Re: unable to use vars in foreach [updated question]

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

 



So, searching php.net (I swear I did before...)

I found this at http://us2.php.net/language.types.array

" You cannot use arrays or objects as keys. Doing so will result in a
warning: Illegal offset type."

Neverthought that my var was an object, just thought maybe a string.  My
new question is, how can I convert this object to a string?  Or get the
val of it

Here is my XML

<module name="News">
<postName>news</postName>
    <pageLevelPermissions>News : Add
       <authenticatedPage>news.add.php</authenticatedPage>
       <navDisplay page="/news/news.add.php">Add</navDisplay>
    </pageLevelPermissions>
    <pageLevelPermissions>News : Current
       <authenticatedPage>news.current.php</authenticatedPage>
       <navDisplay page="/news/news.current.php">Current</navDisplay>
    </pageLevelPermissions>
    <pageLevelPermissions>News : Archived
       <authenticatedPage>news.archived.php</authenticatedPage>
       <navDisplay page="/news/news.archived.php">Archived</navDisplay>
    </pageLevelPermissions>
</module>

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