![]() |
|
more useful options | |
PerlMonks |
Re^2: Five Ways to Reverse a String of Words (..., Oz)by Anonymous Monk |
on Mar 23, 2007 at 10:16 UTC ( #606197=note: print w/replies, xml ) | Need Help?? |
no php yet? no respect! ;) <?php $reversed = implode(' ', array_reverse(explode(' ', $str))); ?> kept it on one line so the perl guys can understand it :)
In Section
Meditations
|
|