Monday, August 23, 2021

Creating a Function in PHP

 A simple program to demonstrate how to creating and use functions using PHP programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.


My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.




Program Listing

index.php


<?php

// defining the function

function greetings()

{

    echo "Happy Birthday to you.<br>";

}


echo "Hey Julianna Rae <br/>";

// calling the function

greetings();


echo "Hey Virgilio <br/>";

// calling the function

greetings();


No comments:

Post a Comment