Search This Blog

function with parameters in php

<?php
 
function hai($age){

if($age==21)
{
  echo 'you are eligible for vote';
}
else{
  echo 'you are not eligible for vote';
}
}
$age=21;
echo hai($age);
?>
outputt :

you are eligible for vote

Share Links

Related Posts Plugin for WordPress, Blogger...