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

What is whitespace in php?

0 Answers  


How many php functions are there?

0 Answers  


How can image properties be retrieved in php?

0 Answers  


Tell me how can you pass a variable by reference?

0 Answers  


What are the differences between php constants and variables?

0 Answers  


Tell me what is the difference between get and post?

0 Answers  


How to Retrieve the Session ID of the Current Session?

0 Answers  


Is null check in php?

0 Answers  


How is it possible to return a value from a function?

0 Answers  


which institute provide better PHP trainning in delhi? please tell me how much salary can freshers get ? thanku

5 Answers  


Is age an interval or ratio?

0 Answers  


What are the advantages of oops in php?

0 Answers  


Categories