Thread: new to talkphp
View Single Post
Old 04-28-2009, 11:30 AM   #9 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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)
sketchMedia is offline  
Reply With Quote