Joined October 2014
·

Nikola

Novi Sad
·
·

Posted to Reverse words in a sentence - PHP over 1 year ago

$s = "The lazy dog jumped over the fox";
$a = explode(" ",$s);
$a = array_reverse($a);

echo implode(" ", $a);

</code>

Achievements
1 Karma
0 Total ProTip Views