Andrew
Member since Jan 28, 2011
- Profile: /members/7690-andrew.htm
- Comments: 3
Recent Blog Comments By Andrew
-
Selecting The Seven Languages In Seven Weeks Winners
Posted on Feb 10, 2011 at 12:09 PM
Grats to the winners! Thanks again for your creativity with the contest Ben. It would be cool to do something like this every once in a while even if there is no prize involved :)... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 29, 2011 at 12:06 AM
@Ben $values[] = $value; creates an array called $values and adds each new value to the end of the array as the function loops through. Thanks for doing this little contest too. I have enjoyed looking through everyone's code to see what they did with their languages. If I don't win one of the bo... read more »
-
Seven Languages In Seven Weeks By Bruce Tate - What An Adventure
Posted on Jan 28, 2011 at 1:44 PM
PHP: <?php $names = array('Claire','Juliet','Kate','Penny','Charlotte','Sun','Shannon'); function nameAdjective($n, $v) { foreach($n as $value){ $value .= " is so $v"; $values[] = $value; } return $values; } $newNames = nameAdjective($names, 'hot'); foreach($newNames as ... read more »