mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2025-01-03 08:22:39 +00:00
Merge pull request #18 from rahman95/add-my-contribution
added code sample and updated readme
This commit is contained in:
commit
d88b74d469
10
README.md
10
README.md
@ -51,6 +51,16 @@ Start adding your names here:
|
|||||||
- I am a young developer in india
|
- I am a young developer in india
|
||||||
- I'm currently a student!
|
- I'm currently a student!
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
### Shubham Nishad
|
### Shubham Nishad
|
||||||
- Fourth year student in Computer Science.
|
- Fourth year student in Computer Science.
|
||||||
- you can check my site [https://shubhamnishad.com/](https://shubhamnishad.com/)
|
- you can check my site [https://shubhamnishad.com/](https://shubhamnishad.com/)
|
||||||
|
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