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 |
Can we override static method in php?
How to set session.gc_divisor properly?
What is the use of namespace in php?
what is difference between PHP4 , PHP5
HOW we can use css
What is the scope of a variable defined in a function?
What is difference between ksort() and usort() functions.
Name some of the functions in php.
Give the case where we can use get and we can use post methods?
How to increase the execution time of a PHP script?
Where to put php files in apache server?
What is difference between str_replace and substr_replace