Professional Documents
Culture Documents
PHP Tizag Tutorial-36
PHP Tizag Tutorial-36
Now that you have completed coding your PHP function, it's time to put it through a test run. Below is a
simple PHP script. Let's do two things: add the function code to it and use the function twice.
PHP Code:
<?php
echo "Welcome to Tizag.com <br />";
echo "Well, thanks for stopping by! <br />";
echo "and remember... <br />";
?>
Display:
Welcome to Tizag.com
We deliver quantity, not quality!
Well, thanks for stopping by!
and remember...
We deliver quantity, not quality!
Although this was a simple example, it's important to understand that there is a lot going on and there are
a lot of areas to make errors. When you are creating a function, follow these simple guidelines: