write function of the sentence traversal passing the
parameter, e.g input:this is input sentence.
output:sentence input is this.
Answer / 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 |
How can I learn php fast?
Does php have a future?
Where is the submitted form data stored?
Explain what are some new features introduced in php7?
What is isset and unset in php?
what is magic code ?
4 Answers eVenturers, iFlash, Zynga,
List some of the features of php7.
What are encryption functions in php?
How to replace a substring in a given string in php?
How to find the length of a string?
Is multiple inheritance supported in php?
Tell me how can we connect to a mysql database from a php script?