Created
November 4, 2011 21:40
-
-
Save gakyoo/1340556 to your computer and use it in GitHub Desktop.
How to work around with php functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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