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 |
Who is the father of PHP and explain the changes in PHP versions?
15 Answers ADISoft Tech, Genpact, PropTiger, TWA,
A company named Pensar Technologies in chennai has offered me a job as Software Trainee in chennai.But they are asking to pay demand draft of Rs.75000/- in the name of the company.They are saying the gross renumeration will pay Rs.90000/- annually.I want to know whether this is good or bad company?Help me out in this.
How can I display text with a php script?
What is the use of rand() in php?
What is str_replace()?
How stop the execution of a php scrip?
What is asort php?
What is the best way to test the strpos() return value in php?
Why shouldn't I use mysql_* functions in php?
How can we submit a form without a submit button?
2 Answers Rushmore Consultancy,
What is a collection in php?
programm for factorial