mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-12-22 05:12:40 +00:00
added code sample and updated readme
This commit is contained in:
parent
05938253bb
commit
9e1fd68cc0
11
README.md
11
README.md
@ -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
19
code/rahman95.php
Normal 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();
|
Loading…
Reference in New Issue
Block a user