Skip to content

Instantly share code, notes, and snippets.

@abdullahbutt
Created December 7, 2013 11:08
Show Gist options
  • Select an option

  • Save abdullahbutt/7839852 to your computer and use it in GitHub Desktop.

Select an option

Save abdullahbutt/7839852 to your computer and use it in GitHub Desktop.
class in php
<?php
/**
* myClass
*@author: Abdullah Butt
*@param:
*/
class myClass
{
public $name;
public function __construct($new_name='')
{
$this->name=$new_name;
return $this->name.'<br>';
}
public function doingSomething($value='')
{
return $value.' is doing Something'.'<br>';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment