I've jsut written some code to print out all the variables in the $GLOBALS array..and then I was trying to print out everything in $links_loop. For some reason, this code isn't working correctly;
echo "now array..";
foreach ($links_loop as $thing) {
foreach ($links_loop['$thing'] as $loop => $val) { echo " $loo => $val"; }
}
?>
For some reason, the last foreach is brining up an error. How would I refer to the sub-arrays within $globals?
Thanks
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
<? foreach ($GLOBALS as $item => $var) { echo " $item => $var<BR>"; } echo "now array..";
foreach ($links_loop as $thing) {
foreach ($links_loop['$thing'] as $loop => $val) { echo " $loo => $val"; }
}
?>
For some reason, the last foreach is brining up an error. How would I refer to the sub-arrays within $globals?
Thanks
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!