Simple Function Example in PHP

<?php 
function first () {
function 
second() {
echo 
'I am  first function.';
}
echo 
'I am  second function.<br/>';
}
// here it must first you call function first()  then second()  function 

first(); // Print I am  second function 
second(); // Print I am  first function 
?>
This example use for handle to multiple Function In php

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress