04-28-2009, 11:30 AM
|
#9 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
oops  , well mine was a bash script and not PHP, however here is the exact (more or less) PHP equivilant:
PHP Code:
$welcome = array('welcome', 'to', 'TalkPHP!,', 'nickyoung'); $count = count($welcome); for($i=0;$i<$count;++$i) { $retStr .= ' ' . $welcome[$i]; } echo $retStr;
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|