PHP function Keyword
Example
Create a function and run it:
<?php
function hello($a) {
return "Hello $a!";
}
echo hello("World");
?>
Try it Yourself »
Definition and Usage
The function
keyword is used to create a function.
Related Pages
Read more about functions in our PHP Functions Tutorial.
❮ PHP Keywords
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.