PHP function Keyword

PHP global Keyword
PHP yield from Keyword

In this article, you will learn about the function keyword in PHP. The function keyword is used to create a function.

examples of the function

Example 1. In this example, we create a function and run it.

<?php
function hello($a) {
  return "Hello $a!";
}

echo hello("World");
?>
PHP global Keyword
PHP yield from Keyword

Stay up-to-date about PHP!

We don’t spam!

en English
X
Scroll to Top