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 mysql_fetch_array in php?

1036


What is the name of scripting engine in php?

1222


How to increase the execution time of a PHP script?

1047


How many types of php are there?

985


Tell me how can we define a variable accessible in functions of a php script?

949


Why triggers are used in mysql?

962


How does php work?

968


What is api laravel?

1103


What are the Advantages and Application Areas of PHP?

944


What is the purpose of the '.myi' file extension? What do thes file contain?

960


What is session_register()?

985


What is a comment in php?

1082


Name some of the constants in php and their purpose.

983


What are interfaces in php?

964


Can you specify the "new line" character in single-quoted strings?

961