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
Is php coding easy?
What are the functions used in php?
What is Type hinting in PHP?
What is cms php?
What is a php namespace?
Is laravel frontend or backend?
What are super global variables in php?
What is framework in php?
Tell us why did you choose this particular career path?
Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
What is the use of friend function in php?
What is the use of post in php?
Explain the ternary conditional operator in php?
Explain about a search-friendly site looks like?
Can you use both this () and super () in a constructor?