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

Can we override static method in php?

0 Answers  


How to set session.gc_divisor properly?

0 Answers  


What is the use of namespace in php?

0 Answers  


what is difference between PHP4 , PHP5

0 Answers   Net Solution,


HOW we can use css

3 Answers   ConSim, IPsoft,


What is the scope of a variable defined in a function?

0 Answers  


What is difference between ksort() and usort() functions.

0 Answers  


Name some of the functions in php.

0 Answers  


Give the case where we can use get and we can use post methods?

0 Answers  


How to increase the execution time of a PHP script?

0 Answers  


Where to put php files in apache server?

0 Answers  


What is difference between str_replace and substr_replace

1 Answers  


Categories