write function of the sentence traversal passing the
parameter, e.g input:this is input sentence.
output:sentence input is this.
Answer Posted / vipul dalwala
$input = "this is input sentence";
$array = explode(' ', $input);
$output = implode(' ' , array_reverse($array));
print $output;
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are php errors?
What is symfony php?
What is magic quotes?
How can I use single quotes in single quotes in php?
What is the use of mysql_real_escape_string in php?
How to find the index of an element in an array php?
What is a controller in php?
How to use http headers inside php?
What does the expression exception::__tostring means?
What is the difference between client-side and server-side programming?
What is the use of Mbstring?
Is php faster than nodejs?
When to use single quotes, double quotes, and backticks?
How can you execute php script from the command line?
What is the use of rand() in php?