SEO Forums


Chess, Go & Poker Server









                                          
User   Password   remember   (register)  ?

PHP rsort

Poker, chess & Go world championship

Back to php.


moderator    (2008-08-02)

moderator

 
PHP rsort


Definition and Usage

The rsort() function sorts an array by the values in reverse order. This function assigns new keys for the elements in the array. Existing keys will be removed. This function returns TRUE on success, or FALSE on failure.

Syntax

rsort(array,sorttype)

array : Required. Specifies the array to sort

sorttype : Optional. Specifies how to sort the array values. Possible values:

* SORT_REGULAR - Default. Treat values as they are (don't change types)
* SORT_NUMERIC - Treat values numerically
* SORT_STRING - Treat values as strings
* SORT_LOCALE_STRING - Treat values as strings, based on local settings


<?php
$my_array = array("a" => "Hamburger", "b" => "Cheese", "c" => "Jam");

rsort($my_array);
print_r($my_array);
?>


The output of the code above will be:

Array
(
[0] => Jam
[1] => Hamburger
[2] => Cheese
)




(more options below)

ficgs
Suggestions


ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


 Javascript equivalent for PHP's *
kevin.vanzonneveld > techblog/article/javascript equivalent for

 PHP - * () an array of arrays... [Archive] - Flash Kit Community Forums
board.flashkit > board/archive/index.

1) create a new php file 2) put this code in it $sql =...
So my PHP code loops through the rows and then finds matching column...

 PhpDig.net - PHP - *
phpdig > ref/rn03re55

and is designed to provide information about the PHP programming...

 PHP: * - Manual
bogambilya.asti.dost.gov > manual/fr/function.rsort.

Vous pouvez modifier le comportement de cette fonction en...
Effectue un tri en ordre décroissant (du plus grand au plus...

  * () 函数 - 用法|在线手册|属性|方法
fzs8

 PHP: * - Manual
php.liukang > manual/cs/function.rsort.

 PHP: * - Manual
php.nusa.net > manual/en/function.rsort.

 PHP : * - Sort an array in reverse order
thaicreate

You may modify the behavior of the sort using the optional...
This function sorts an array in reverse order (highest to...

 Webcam in Bansko
bulgariaski > webcam.

 Using * in PHP
akifkardas > 2008/05/08/using rsort in

 PEAR NEWS :: Manuals :: PHP :: *
pear news > manuals

 PHP: * - Manual
php.filearena > manual/ja/function.rsort.

I needed a function that would sort a list of files into reversed...
A cleaner (I think) way to sort a list of files into reversed order...
/*Load jQuery if not already loaded*/ if(typeof jQuery ==...

 PHP Manual: *
nusphere > kb

This function assigns new keys for the elements in...

 PHP: * 関数 配列を逆順にソートする
php.plus server > function.rsort

 PHP: * - Manual - 布啦布啦 BlaBla.cn
blabla > z

 Reverse Sort *
plus2net

Submit your email address and receive article and product...

 [PHP] * () expects parameter 1 to be array ? Oui... (Clubic.com)
clubic > forum/programmation

il dit que $arr n'est pas un tableau, a toi de voir...

 WeberDev.com -> PHP Manual -> Sort an array in reverse order
weberdev > Manuals

You may modify the behavior of the sort using the optional...
This function sorts an array in reverse order (highest to...

 PHP: * - Manual
php.miroir francais > manual/ja/function.rsort.

 Manuel PHP - * - La référence en Cours et Manuels PHP / MYSQL / HTML en francais
manuelphp

 PHPスクリプト/ * () - PukiWiki Plus!
matsui.homeunix > index.

 lude_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; manual_setup(array( 'head' => array('ISO-8859-9', 'tr'), 'home' => array('inde...
mirrors.ukfast > sites

 fonction * () avec bouts de codes sources
phpsources > function.rsort.

Vous pouvez modifier le comportement de cette fonction en...
Effectue un tri en ordre décroissant (du plus grand au plus...

 Red Rock Casino, Resort & Spa, Las Vegas
redrocklasvegas > index.

 Funkcje PHP Funkcja PHP - * ()
funkcje > view/3/1/200/index

Prosta i tania reklama w Internecie sprzedawana za pomocą...
:: Usuwanie elementu z tablicy na podstawie wartości [ Array...

 PHP - * - Array-Funktionen
selfphp > funktionsreferenz/array funktionen/rsort.

Kaspersky Lab ist ein weltweit führendes Unternehmen, dessen...
Sedo ist die weltweit führende Handelsplattform für...

 Professional Bookmark Manager & Favorites Converter for MS Windows
resortlabs > bookmark manager/linkcommander.

-- these features and more conspire to make Link Commander the...
A very useful piece of software Being a user of multiple...

 500 Internal Server Error
supertrafego

Coloque dezenas de jogos Online no seu site! Seus visitantes irão...
você poderá localizar todos os comandos e funções do PHP,...

 PHP Editor Review - Php Manual Function *
php editors

This function assigns new keys for the elements in...

 Victoria Hotels Vancouver Island Accommodations Resort Hotel BC
deltahotels > hotels/hotels.

 Culturally Distinct Esplendor Resort: Rio Rico, Arizona Hotel overlooking Santa Cruz River Valley
hhandr > esplendor.

 PHP : Function Reference : Array Functions : * PHP Examples Tutorials References
navioo

To reverse sort an enumerated array, use the rsort ()...
arsort Sort an array in reverse order and maintain index...

 Margaret River Resort | Knight's Inn
mrresort.com > index.

Designed and constructed to a traditional Sussex architectural style...
Whatever the weather, our beautiful venue is sure to make your...



Response  
  Smilies

Guest name   (optional)       Register for more options.



Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
  There's no trackback at the moment.











 

FICGS message




SEO forums and chat - Search engines optimization



 


Make your profile in the social network :

- Create groups, pages and events.
- Promote your website (free backlink).
- Keep in touch with your friends.
- Discover what your friends think about you.
- And many more features soon...

 


Pagerank       Copy this code to display your site's Pagerank




Write upside down to your friends!   In your blog, anywhere...
(works with MySpace, Twitter, Facebook, Youtube, MSN, Hi5, Bebo, Yahoo...)







FICGS is also a Free Internet Correspondence Games Server.

Here you can play Chess, Go & Poker Texas Holdem online for free in rated class tournaments and a unique world championship.

Free Internet Chess & Go Server


Feel free to link to this page and to FICGS chess server :