mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-07-01 11:07:03 +00:00
Merge pull request #18 from rahman95/add-my-contribution
added code sample and updated readme
This commit is contained in:
commit
d88b74d469
12
README.md
12
README.md
|
@ -51,12 +51,22 @@ 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/)
|
||||||
- [![twitter-alt][twitter-img]](https://twitter.com/shubhamnishad97)
|
- [![twitter-alt][twitter-img]](https://twitter.com/shubhamnishad97)
|
||||||
[![github-alt][github-img]](https://github.com/shubhamnishad97)
|
[![github-alt][github-img]](https://github.com/shubhamnishad97)
|
||||||
|
|
||||||
### Example Profile
|
### Example Profile
|
||||||
- I'm an example that you can copy, if you want :)
|
- I'm an example that you can copy, if you want :)
|
||||||
- I work for...
|
- I work for...
|
||||||
|
|
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