function body here
}
example:
string name="SAM";
function print_name(string name){
print ("my name is $name.");
}
to call this function just:
.print_name($name);
you will see a result as;
my name is SAM.
I share everything about computer tips including, programming language on Java, c++,Object oriented, Web base programming, web design, How to earn money with blog, Adsense tutorial, blogspot tips, domain name hosting.
![]() | ||
| Add caption |
<?Note: two dollars sign: the input will print and ask you to input value for variable by using $_GET, and after get input to $_GET, it will be displayed to the print line.In this case, you have only two choice to replaced variable is var1 and var2. Otherwise, result will not get any variable to display.
$var1=""john";
$var2="SAM";
print ("you choose $$_GET["variable"] to be your advisor");
?>
Personal I.T blogs Copyright © 2011 -- Template created by O Pregador -- Powered by Blogger