cycle thru an array ( noob :(
Posted: Fri Jun 10, 2005 8:31 pm
Here's what I have:
I know this doesn't work. It's just what I tried.
This is experiment # 2 with PHP.
Also point me toward a more Noob forum. This place already makes me feel like a loser.
Code: Select all
<?php
$buttons = "e;Home,PC Information Center,PC Clinic,PC Learning Center,Log-in,About Us"e;;
$links = "e;/index.php,/Info_Ctr/info_home.html,/Clinic/clinic_home.html,/School/school_home.html,/login.php,/about.html"e;;
$arrbuttons = split("e;,"e;, $buttons);
$arrlinks = split("e;,"e;, $links);
$lenbuttons = count($arrbuttons);
echo $lenbuttons;
for($i=0; $i<$lenbuttons; $i++)
{
echo "e;<a href="e; . $arrbuttonsїi] . "e;>"e; . $arrlinksїi] . "e;</a></br>"e;;
}
?>This is experiment # 2 with PHP.
Also point me toward a more Noob forum. This place already makes me feel like a loser.