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 is the use of "ksort" in php?
Is it possible to use com component in php?
Tell me what library is used for pdf in php?
Do csrf tokens expire?
Do you know what is use of count() function in php?
What is a namespace in php?
Can I run php without xampp?
What is a collection in php?
What is $_ files in php?
What does == mean in php?
What is the difference between null and empty?
Is php an oop?
What is __ invoke in php?
Tell me how do I escape data before storing it into the database?
Explain how is it possible to cast types in php?