Skip to content

Commit

Permalink
Homework 1 Completed
Browse files Browse the repository at this point in the history
  • Loading branch information
stokholmam committed Mar 19, 2015
1 parent 3d23cb7 commit 64a83fd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions homework/week1/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

// Homework 1

$input = $argv[1];
$i = 1;
while($argv[$i] !== null){
$input .= " " . $argv[$i];
$i++;
}

echo "FINAL Input: " . $input . "\n";

function multiplyText($str) {
$result = '';

for ($i = 1; $i <= 10; $i++) {
for ($i = 1; $i <= 5; $i++) {
$result .= $i . ': ' . $str . PHP_EOL;
}

Expand Down

0 comments on commit 64a83fd

Please sign in to comment.