loops
Posted: Tue Nov 04, 2003 6:55 pm
So I want to create a loop to save on code space.. Currently I have 14 elseif's I want one.. Here is part of the code I am using..
The rest is just the elseif with diff numbers for the arrays.. How would I go about creating a loop for that? Thanx for your help.. And sorry I'f this is simple.. I'm still learning..
Code: Select all
<?
if(!isset($go)){
include("home.php");
}
elseif($go==$links[0]){
include("$url[0]");
}
?>