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 does php do?
What is the main difference between php 4 and php 5?
What is the ioncube php loader?
How can we make a constant in php?
Write a program to get second highest number in an array using php?
Why session is required?
What are advantages of .htaccess?
Explain how to submit form without a submit button.
When to use single quotes, double quotes, and backticks?
What are the different errors in php?
explain php variable length argument function.
How many types of arrays are there in php?
What is == and === in php?
Does facebook use php framework?
How check field is empty or not in php?