Here is the array...
- Code: Select all
$LinksLocal = array(
array( 'name' => "Main Page", 'loc' => "main" ),
array( 'name' => "About", 'loc' => "about" ),
);
- Code: Select all
function PrintLinks($Sepr)
{
global $LinksLocal;
foreach( $LinksLocal as $LinkI )
{
LocalLink($LinkI[name],$LinkI[loc]);
print "<br>";
BugOut("PrintLinks: LinkI[name]=".$LinkI[name]." LinkI[loc]=".$LinkI[loc]);
}
}
Despite this code, it just does the first object in the $LinksLocal array, uses the LocalLink function to print it, and then exits, forgetting about the object after it.

