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 can I learn php fast?

0 Answers  


Does php have a future?

0 Answers  


Where is the submitted form data stored?

0 Answers  


Explain what are some new features introduced in php7?

0 Answers  


What is isset and unset in php?

0 Answers  


what is magic code ?

4 Answers   eVenturers, iFlash, Zynga,


List some of the features of php7.

0 Answers  


What are encryption functions in php?

0 Answers  


How to replace a substring in a given string in php?

0 Answers  


How to find the length of a string?

0 Answers  


Is multiple inheritance supported in php?

0 Answers  


Tell me how can we connect to a mysql database from a php script?

0 Answers  


Categories