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

Is nan in javascript?

0 Answers  


How to find datatype of variable in php?

0 Answers  


what is view?

0 Answers  


How can use sys time in loop?

0 Answers   Fengate,


What are the benefits of composer?

0 Answers  


Explain me is multiple inheritance supported in php?

0 Answers  


How do you define a constant in php?

0 Answers  


Is php deprecated?

0 Answers  


Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?

0 Answers  


Which php framework is best for security?

0 Answers  


How can I check if a value is already in an array?

3 Answers   Rushmore Consultancy,


what is php stands for?

23 Answers   Infosys, Satyam, Torque Infotech,


Categories