Try this:
$s="Hello everybody in stackoverflow";
echo implode(' ', array_reverse(explode(' ', $s)));
More Related Contents:
- How to reverse a Unicode string
- Reverse the letters in each word of a string
- How to fix “warning illegal string”?
- How can I combine two strings together in PHP?
- How to generate all permutations of a string in PHP?
- Remove multiple whitespaces
- PHP convert string to hex and hex to string
- Converting an integer to a string in PHP
- PHP substring extraction. Get the string before the first ‘/’ or the whole string
- Single quotes or double quotes for variable concatenation? [closed]
- Is a new line = \n OR \r\n?
- Title case a string containing one or more last names while handling names with apostrophes
- Php – regular expression to check if the string has chinese chars
- How to get first x chars from a string, without cutting off the last word?
- Escape string to use in mail()
- Find first character that is different between two strings
- What does the b in front of string literals do?
- Merge array items into string
- Search and replace multiple values with multiple/different values in PHP5?
- PHP remove all characters before specific string
- PHP – Add link to a URL in a string
- How to strip trailing zeros in PHP
- Fastest way of deleting a value in a comma separated list
- How to separate letters and digits from a string in php
- Most efficient way to get next letter in the alphabet using PHP
- How does PHP compare strings with comparison operators?
- str_shuffle and randomness
- Hint or partially hide email address with stars (*) in PHP
- Format 32-character string with hyphens to become UUID
- finding common prefix of array of strings