Create a simple PHP Function

Submitted by:David Villa

Date added:04 February, 2012

Category:PHP

PHP function example that writes a name when it is called.

Tags: php function

Code Snippet:

<?php
function writeName()
{
echo "David Villa";
}

echo "My name is ";
writeName();
?>
 
 

Comments