Skip to content

Instantly share code, notes, and snippets.

@gakyoo
Created November 4, 2011 21:40
Show Gist options
  • Save gakyoo/1340556 to your computer and use it in GitHub Desktop.
Save gakyoo/1340556 to your computer and use it in GitHub Desktop.
How to work around with php functions
<?php
function function_name($parameters, $param2, $para3 = ""){
// what you want to do with the parameters entered
if(strlen($para1 !== 0)){
echo "Has ".$para1." Characters";
}
// the third parameter is option you can choose to supply
// the value or leave it
// The other parameters can be defined in anyway that suites you
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment