Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write function of the sentence traversal passing the
parameter, e.g input:this is input sentence.
output:sentence input is this.



write function of the sentence traversal passing the parameter, e.g input:this is input sentence. ..

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

Post New Answer

More PHP Interview Questions

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.

18 Answers  


How can I display text with a php script?

0 Answers  


What is the use of rand() in php?

0 Answers  


What is str_replace()?

0 Answers  


How stop the execution of a php scrip?

0 Answers  


What is asort php?

0 Answers  


What is the best way to test the strpos() return value in php?

0 Answers  


Why shouldn't I use mysql_* functions in php?

0 Answers  


How can we submit a form without a submit button?

2 Answers   Rushmore Consultancy,


What is a collection in php?

0 Answers  


programm for factorial

1 Answers  


Categories