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
Php error constants and their descriptions
Why triggers are used in mysql?
Does php class need constructor?
What is a controller php?
Write a program in php to reverse a number?
What does namespace mean in php?
What is php and features of php?
Explain the difference between session and cookies in php?
Tell us what is the difference between session_unregister() and session_unset()?
Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?
How do I repair phpmyadmin?
What is printf in php?
What is the function file_get_contents() usefull for?
Is key in array php?
Can you use both this () and super () in a constructor?