Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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??


in reply to Re: Five Ways to Reverse a String of Words (..., Oz)
in thread Five Ways to Reverse a String of Words (C#, Perl 5, Perl 6, Ruby, Haskell)

no php yet? no respect! ;)

<?php
$reversed = implode(' ', array_reverse(explode(' ', $str)));
?>

kept it on one line so the perl guys can understand it :)


Comment on Re^2: Five Ways to Reverse a String of Words (..., Oz)
Replies are listed 'Best First'.
Re^3: Five Ways to Reverse a String of Words (..., Oz)
by Anonymous Monk on Feb 22, 2008 at 09:12 UTC
    php is the bomb

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://606197]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (17)
As of 2015-07-29 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls