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 to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.
What do the initials of php stand for?
What is a class in php programing?
How to make multilanguage site in php? (like english,tamil)
Tell me what sized websites have you worked on in the past?
How to invoke a user function?
What is difference between session and cookies in php?
Why we use get in php?
Explain the difference between static and dynamic websites?
How are sessions maintained?
How to increase the maximum execution time of a script in php?
Is there any way to call a JAVASCRIPT function in PHP in AJAX