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

Php error constants and their descriptions

1185


Why triggers are used in mysql?

962


Does php class need constructor?

944


What is a controller php?

997


Write a program in php to reverse a number?

996


What does namespace mean in php?

1034


What is php and features of php?

990


Explain the difference between session and cookies in php?

986


Tell us what is the difference between session_unregister() and session_unset()?

1004


Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?

1051


How do I repair phpmyadmin?

948


What is printf in php?

980


What is the function file_get_contents() usefull for?

960


Is key in array php?

1007


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

1008