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

Tell me what is the main difference between php 4 and php 5?

0 Answers  


What is return value in php?

0 Answers  


How to download the files using PHP

1 Answers  


What is prepare in php?

0 Answers  


What is curl php?

0 Answers  


How break and continue while loop in php?

0 Answers  


how to overcome server time behind twleve hours compare to local system time

0 Answers  


What is the main difference between require() and require_once()?

0 Answers  


Explain soundex() and metaphone().

0 Answers  


How to find out, how a user visited a particular page?

4 Answers   Yahoo,


What is the difference between characters 34 and x34?

0 Answers  


Is php procedural or oop?

0 Answers  


Categories