Answers for "call function in php"

PHP
8

how to define function in php

<?php
function writeMsg() {
    echo "Hello world!";
}

writeMsg(); //call the function
?>
Posted by: Guest on April-17-2020
3

execute function php

function functionName() {
    //code to be executed;
}
functionName();
Posted by: Guest on November-28-2019
0

call function in php

<?php
function Testfunction() {
  echo "Hello world!";
}

Testfunction(); // call the function
?>
Posted by: Guest on August-03-2021

Browse Popular Code Answers by Language