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

how to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.

2 Answers  


What do the initials of php stand for?

0 Answers  


What is a class in php programing?

0 Answers  


How to make multilanguage site in php? (like english,tamil)

2 Answers  


Tell me what sized websites have you worked on in the past?

0 Answers  


How to invoke a user function?

0 Answers  


What is difference between session and cookies in php?

0 Answers  


Why we use get in php?

0 Answers  


Explain the difference between static and dynamic websites?

0 Answers  


How are sessions maintained?

0 Answers  


How to increase the maximum execution time of a script in php?

0 Answers  


Is there any way to call a JAVASCRIPT function in PHP in AJAX

4 Answers  


Categories