Get your own PHP server Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php  
// function example:
function myFunction() {
  echo "This text comes from a function";
}
// create array:
$myArr = array("Volvo", 15, ["apples", "bananas"], myFunction);
// calling the function from the array item:
$myArr[3]();
?>  
</body>
</html>
This text comes from a function