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 |
What is the array in php?
How do http requests work?
What is isset function in php?
how we can crop an image and how we can display it..
How do I know my xampp version?
Why do we show php code in browser?
What is the difference between for and foreach?
What is trim codeigniter?
Why delimiter is used in mysql?
How is the comparison of objects done in php?
How to check an key is exists in array?
What is the use of $_request variable?