Hey this would show u how to make functions with php. and how to call the function to show the result
Ok first we create the function
<?php
function myfunctionname()
{
echo " My content here..";
// here you will add all your content, code php html etc.
}
// CLOSE THE FUNCTION
?>
ok now we call it..
<?php
myfunctionname();
?>
This weill call the previous function, u can do how many functions u want and call differently..
Another if you want more info like more options n' variables..
like this..
<?php
$name = Miguel;
$lastname = Sanchez;
$info = "something text here etc..";
// we start the function content
function showprofile($name, $lastname, $info) {
// show the results..
echo " Hello My name is $name , and my last name is $lastname <br><br> <b>Info:</b> $info ";
} // end the function
?>
now lets call it..
<?php
showprofile($name, $lastname, $info);
// this will call the function show profile and show results
?>
see how simple it is..
this tutorial was made by me.. please if u liked post your comments or questions.. thanx
MIguel
