help with functions
Posted: Thu Jan 23, 2003 2:59 am
ok, i have this code:
what i want to thing to echo is the variables in the config.php file
they are $site01_name, $site02_name, etc etc
i think ive just got the syntax messed up?
Code: Select all
<?php
function myfunction($num) {
for($i = 1; $i < $num; $i++) {
include ('config.php');
echo "$site0.$i._name";
}
}
myfunction(3);
?>they are $site01_name, $site02_name, etc etc
i think ive just got the syntax messed up?