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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php coding easy?

947


What are the functions used in php?

1046


What is Type hinting in PHP?

1139


What is cms php?

945


What is a php namespace?

956


Is laravel frontend or backend?

949


What are super global variables in php?

1028


What is framework in php?

1001


Tell us why did you choose this particular career path?

942


Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

900


What is the use of friend function in php?

963


What is the use of post in php?

976


Explain the ternary conditional operator in php?

1080


Explain about a search-friendly site looks like?

858


Can you use both this () and super () in a constructor?

997