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 type of language is php?
What is trim function in php?
delete session variable when close browser with out logout
What is a comment in php?
i have a string and that string contains the alphanumeric value and i want to hide or semihide the 10 digit telephone number from the string.
Who is the father of PHP and explain the changes in PHP versions?
2 Answers Rushmore Consultancy,
Does facebook use php framework?
What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?
How can you pass a variable by reference?
Where to put php files in apache server?
What is overloading and overriding in php?
What is a PHP accelerator?