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
How many open modes available when a file open in PHP?
How can you execute php script from the command line?
How can you pass a variable by reference?
Which is the correct way to check if a session has already been started ?
What is difference between mysqli and mysql?
Does php pass arrays by reference?
Why framework is used in php?
Can we override static method in php?
What are the advantages of triggers?
Explain the difference between urlencode and urldecode?
Is php a framework?
Is nan in javascript?
Which parts of php are case sensitive?
What is difference between mysql_fetch_array and mysql_fetch_assoc?
Why do we use query?