Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahKaram-Dev committed Apr 29, 2022
0 parents commit 8ddf674
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/PHP.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added README.md
Binary file not shown.
13 changes: 13 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
/** Splat Operator */
function sum(...$numbers):int
{
$result = 0;
foreach ($numbers as $number){
$result += $number;
}
return $result;
}

echo sum(100,100,100,100);

0 comments on commit 8ddf674

Please sign in to comment.