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

What is the use of "ksort" in php?

902


Is it possible to use com component in php?

934


Tell me what library is used for pdf in php?

956


Do csrf tokens expire?

903


Do you know what is use of count() function in php?

947


What is a namespace in php?

909


Can I run php without xampp?

945


What is a collection in php?

906


What is $_ files in php?

1038


What does == mean in php?

924


What is the difference between null and empty?

968


Is php an oop?

921


What is __ invoke in php?

913


Tell me how do I escape data before storing it into the database?

990


Explain how is it possible to cast types in php?

932