Hello,
try this;
?
function revstr($str){
for($i=strlen($str)-1;$i-1;$i--){
$ans.=$str[$i];
}
return $ans;
}
$a=Good morning!;
print revstr($a);
?
Regards,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php
--
PHP General
On Tuesday 09 April 2002 23:33, Miguel Cruz wrote:
On Tue, 9 Apr 2002, Scott Fletcher wrote:
Is there a PHP code or function that would reverse the data in the
string?
Oh come on.
Is it really THAT hard to look at the manual?
There was a guy on this list a while back, when asked this
2 matches
Mail list logo