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 does php do?

1081


What is the main difference between php 4 and php 5?

1021


What is the ioncube php loader?

1061


How can we make a constant in php?

1041


Write a program to get second highest number in an array using php?

1039


Why session is required?

988


What are advantages of .htaccess?

994


Explain how to submit form without a submit button.

1002


When to use single quotes, double quotes, and backticks?

1027


What are the different errors in php?

1046


explain php variable length argument function.

1117


How many types of arrays are there in php?

1012


What is == and === in php?

954


Does facebook use php framework?

1065


How check field is empty or not in php?

1093