added code sample and updated readme

This commit is contained in:
Rahman Younus 2018-10-01 14:32:50 +01:00
parent 05938253bb
commit 9e1fd68cc0
2 changed files with 34 additions and 4 deletions

View File

@ -40,6 +40,16 @@ Start adding your names here:
- [![twitter-alt][twitter-img]](https://twitter.com/mroliff)
[![github-alt][github-img]](https://github.com/lukeoliff)
### rahman95
- Software Developer born in Germany raised in the UK. 🇩🇪 🇬🇧
- Hobbies include:
- Coding
- Tinkering
- Photography
- Gastronomy
- [![twitter-alt][twitter-img]](https://twitter.com/rahman_younus)
[![github-alt][github-img]](https://github.com/rahman95)
### Example Profile
- I'm an example that you can copy, if you want :)
- I work for...
@ -51,6 +61,7 @@ Start adding your names here:
[![dribbble-alt][dribbble-img]](https://dribbble.com/example)
[![github-alt][github-img]](https://github.com/example)
## How to Contribute
Please read our [contributing](CONTRIBUTING.md) guidelines before making your pull request.

19
code/rahman95.php Normal file
View File

@ -0,0 +1,19 @@
<?php
class HelloWorld
{
protected $name;
public function __construct(string $name)
{
$this->name = $name;
}
public function sayHelloWorld()
{
return "Hello World from {$this->name} 👋";
}
}
$class = new HelloWorld('rahman95');
echo $class->sayHelloWorld();