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 type of language is php?

0 Answers  


What is trim function in php?

0 Answers  


delete session variable when close browser with out logout

3 Answers  


What is a comment in php?

0 Answers  


i have a string and that string contains the alphanumeric value and i want to hide or semihide the 10 digit telephone number from the string.

0 Answers  


Who is the father of PHP and explain the changes in PHP versions?

2 Answers   Rushmore Consultancy,


Does facebook use php framework?

0 Answers  


What is the difference between mysql_connect and mysql_pconnect ? Which one is good in terms of performance ?

4 Answers  


How can you pass a variable by reference?

0 Answers  


Where to put php files in apache server?

0 Answers  


What is overloading and overriding in php?

0 Answers  


What is a PHP accelerator?

0 Answers  


Categories