SEO Forums















                                          
User   Password   remember     (register)  ?

PHP arsort


Back to php.


moderator    (2008-08-02)

moderator

 
PHP arsort

Definition and Usage

The arsort() function sorts an array by the values in reverse order. The values keep their original keys. This function returns TRUE on success, or FALSE on failure.

Syntax

arsort(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");

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


The output of the code above will be:

Array
(
[c] => Jam
[a] => Hamburger
[b] => Cheese
)



ficgs
Suggestions

 PhpDig.net - PHP - arsort
www.phpdig.net/ref/rn03re37.html

 Javascript equivalent for PHP's arsort
kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_arso

 goldvision.com - PHP / arsort
www.goldvision.com/us/en/manuals/phpen/function.arsort.html

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

 Array arsort the reverse sort
www.plus2net.com/php_tutorial/array-arsort.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 arsort() Function
www.kenhmuaban.com/manual/php/func_array_arsort.aspx

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

 HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> arsortPHP ManualPrevNextarsort (PHP 3, PHP 4 , PHP 5)arsort --  Sort an array ...
php.activeventure.com/function/a-c/function.arsort.html

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

 PHP : arsort - Sort an array in reverse order and maintain index association
www.thaicreate.com/php-manual/function.arsort.html

 arsortPHP ManualPrevNextarsort (PHP 3, PHP 4 )arsort --  Sort an array in reverse order and maintain index association Descripti...
manualy.zcu.cz/phpman/function.arsort.html

 The Apache Software Foundation Mailing Lists
svn.apache.org/repos/asf/labs/pulse/report-web/mlists.php

  arsort: Sort an array in reverse order and maintain index association : Array sort « Data Structure « PHP
www.java2s.com/Code/Php/Data-Structure/arsortSortanarrayinreverseorderandma

 [PHP-ES] ayuda con ARSORT :: ASPN Mail Archive :: php-spanish
aspn.activestate.com/ASPN/Mail/Message/php-spanish/1879387

 PHP - 函数:arsort()
study.chyangwa.com/IT/PHP/function.php-arsort.php

 arsort - PHP manual
www.phpf1.com/manual/arsort.html

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

 function.arsort - PHP Manual - Cheap Web Hosting Providers
www.cheaphostdir.com/reference/php/function.arsort.html

 PHP Blog » arsort
vaziliy.com/blog/?tag=arsort

 function arsort (standard)
www.zugeschaut-und-mitgebaut.de/php/function.arsort.html

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

 arsort
phpspot.net/php/man/php/function.arsort.html



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



 

March 19, 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

U comment I follow : The "nofollow" tag will be removed in links included in valuable content.


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







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 :