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 empty java?
What is php stack?
What is php pathinfo?
What is isset and unset in php?
List some features of php that are deprecated in php
What is framework in php?
What is parent __construct ();?
Which php framework is best for security?
How do sessions work in php?
How can we encrypt the password using php?
Is it more secure to use cookies to trfer session ids?
What is the importance of "action" attribute in a html form?
What is php addslashes?
How to split a string into array using php?
Php code to find whether a number armstrong or not?