Skip to content

Instantly share code, notes, and snippets.

View gakyoo's full-sized avatar
🎯
Focusing

Godluck Akyoo gakyoo

🎯
Focusing
  • Boston, MA
  • 05:37 (UTC -05:00)
  • X @gpakyoo
View GitHub Profile
@gakyoo
gakyoo / guest.php
Created February 8, 2012 21:16
This is a guest class for guestbook, still on development
<?php
/**
* This class extend database class
* It contains all method for managing
* The guest activities.
*
* @author Akyoo
*/
require_once 'database.php';
@gakyoo
gakyoo / function.php
Created November 4, 2011 21:40
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
@gakyoo
gakyoo / function.php
Created November 4, 2011 21:39
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 add
}