aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Wong <somethingweird@yahoo.com>2020-11-25 11:51:32 -0500
committerGitHub <noreply@github.com>2020-11-25 11:51:32 -0500
commitd626c542817b6b5463c7fc36837219c86b32b953 (patch)
tree81b60c70469e1fec41f08f0e95fc466855697629
parent33c35f58e0775528d066713cb20ce239f1a3037a (diff)
downloadperlweeklychallenge-club-d626c542817b6b5463c7fc36837219c86b32b953.tar.gz
perlweeklychallenge-club-d626c542817b6b5463c7fc36837219c86b32b953.tar.bz2
perlweeklychallenge-club-d626c542817b6b5463c7fc36837219c86b32b953.zip
Delete ch-1.php
wrong place
-rw-r--r--challenge-088/henry-wong/ch-1.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/challenge-088/henry-wong/ch-1.php b/challenge-088/henry-wong/ch-1.php
deleted file mode 100644
index 202052ca76..0000000000
--- a/challenge-088/henry-wong/ch-1.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-/**
-TASK #1 › Array of Product
-**/
-
-function solution($a) {
- $b = array();
- for ($i = 0; $i < count($a); $i++) {
- $c = $a;
- unset($c[$i]);
- $b[] = array_product($c);
- }
- return $b;
-}
-
-$a = array(5, 2, 1, 4, 3);
-print_r(solution($a));