Re: [PHP] Reversing a string?

2004-05-14 Thread Kim Steinhaug
hehe, Reading the manual is somewhat not so bad after all... -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: those who understand them, and those who don't.

[PHP] Reversing a string?

2004-05-13 Thread Kristian Rasmussen
Hi all, I need a script for reversing a string (hello world becomes dlrow olleh). I have tried the following: --- $length = strlen($i); $g = ; while ($length 0) { $g = $i[$length] . $g; $length--; } echo $g; --- With, obviously, no success. Is this the way or could array_reverse()

[PHP] Reversing a string?

2004-05-13 Thread Kristian Rasmussen
Hi all, I need a script for reversing a string (hello world becomes dlrow olleh). I have tried the following: --- $length = strlen($i); $g = ; while ($length 0) { $g = $i[$length] . $g; $length--; } echo $g; --- With, obviously, no success. Is this the way or could array_reverse()

Re: [PHP] Reversing a string?

2004-05-13 Thread Robert Cummings
On Thu, 2004-05-13 at 17:27, Kristian Rasmussen wrote: Hi all, I need a script for reversing a string (hello world becomes dlrow olleh). I have tried the following: --- $length = strlen($i); $g = ; while ($length 0) { $g = $i[$length] . $g; $length--; } echo $g; The