calling and making a function in php code example
Example: how to define function in php
<?php
function writeMsg() {
echo "Hello world!";
}
writeMsg(); //call the function
?>
<?php
function writeMsg() {
echo "Hello world!";
}
writeMsg(); //call the function
?>