<?php
echo my_string("just testing");
function my_string($string) {
return("you passed $string");
}
?>
you can also do recursive stuff like this:
<?php
print_all_numbers_below(10);
function print_all_numbers_below($number) {
echo $number."\n";
if($number) print_all_numbers_below($number - 1);
}
?>
that should print out
10
9
8
7
6
5
4
3
2
1
unless i really screwed something up.
from there you should be able to get started