SEO Forums















                                          
User   Password   remember     (register)  ?

PHP rsort


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
)



ficgs
Suggestions

 Javascript equivalent for PHP's rsort
kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_rsor

  PHP - rsort() an array of arrays... [Archive] - Flash Kit Community Forums
board.flashkit.com/board/archive/index.php/t-744434.html

 PhpDig.net - PHP - rsort
www.phpdig.net/ref/rn03re55.html

 PHP: rsort - Manual
bogambilya.asti.dost.gov.ph/manual/fr/function.rsort.php

 php rsort() 函数 - 用法|在线手册|属性|方法
www.fzs8.net/php/php_tutorial/2007-03-18/976.html

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

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



ficgs
More suggestions

This is a collaborative page, you may change the order of these suggestions by registering, then clicking the icons before the titles.


 PHP : rsort - Sort an array in reverse order
www.thaicreate.com/php-manual/function.rsort.html

 Webcam in Bansko
www.bulgariaski.com/webcam.php?resort=Bansko

 Using rsort in PHP
www.akifkardas.com/2008/05/08/using-rsort-in-php.html

 PEAR NEWS :: Manuals :: PHP :: rsort
www.pear-news.de/manuals/php/function.rsort.html

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

 PHP Manual: rsort
www.nusphere.com/kb/phpmanual/function.rsort.htm

 PHP: rsort関数 配列を逆順にソートする
php.plus-server.net/function.rsort.html

 PHP: rsort - Manual - 布啦布啦 BlaBla.cn
www.blabla.cn/z/php_cn/function.rsort.html

 Reverse Sort rsort
www.plus2net.com/php_tutorial/array-rsort.php

 [PHP] rsort() expects parameter 1 to be array ? Oui... (Clubic.com)
www.clubic.com/forum/programmation/php-rsort-expects-parameter-1-to-be-arra

 WeberDev.com -> PHP Manual -> Sort an array in reverse order
www.weberdev.com/Manuals/PHP/function.rsort.html

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

 Manuel PHP - rsort - La référence en Cours et Manuels PHP / MYSQL / HTML en francais
www.manuelphp.com/php/function.rsort.php

 PHPスクリプト/rsort() - PukiWiki Plus!
matsui.homeunix.com/index.php?PHP%A5%B9%A5%AF%A5%EA%A5%D7%A5%C8%2Frsort()

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

 fonction php rsort() avec bouts de codes sources
www.phpsources.org/function.rsort.php

 Red Rock Casino, Resort & Spa, Las Vegas
www.redrocklasvegas.com/index.php

 Funkcje PHP Funkcja PHP - rsort()
funkcje.net/view/3/1/200/index.html

 PHP - rsort - Array-Funktionen
www.selfphp.de/funktionsreferenz/array_funktionen/rsort.php

 Professional Bookmark Manager & Favorites Converter for MS Windows
www.resortlabs.com/bookmark-manager/linkcommander.php

 500 Internal Server Error
www.supertrafego.com/php_rsort.asp

 PHP Editor Review - Php Manual Function rsort
www.php-editors.com/php_manual/function.rsort.html

 Victoria Hotels Vancouver Island Accommodations Resort Hotel BC
www.deltahotels.com/hotels/hotels.php?hotelId=51

 Culturally Distinct Esplendor Resort: Rio Rico, Arizona Hotel overlooking Santa Cruz River Valley
www.hhandr.com/esplendor.php

  PHP : Function Reference : Array Functions : rsort PHP Examples Tutorials References
www.navioo.com/php/docs/function.rsort.php

 Margaret River Resort | Knight's Inn
www.mrresort.com.au/index.php/Resort/Knights-Inn



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



 
Please download Flash player.
March 18, 2010

 

Buttons: Facebook, Twitter, MySpace, Google, Technorati, Yahoo buzz... Ficgs Facebook Myspace Twitter Google Technorati Stumble upon Delicious Digg Yahoo buzz Wikio Furl Reddit Linkedin Squidoo Newsvine Yahoo My Web Blogmarks Comments Blinklist Email

You comment I follow : Links included in comments will be "dofollow" if your post is not an obvious spam, comments are published instantly.


Write upside down to your friends !
(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 FICGS :