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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
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
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

