SEO Forums


Chess, Go & Poker Server









                                          
User   Password   remember   (register)  ?

PHP arsort

Free online dating

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
)




(more options below)

See also


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.


 PhpDig.net - PHP - *
phpdig > ref/rn03re37
  1. and is designed to provide information about the PHP programming
  2. (optional): Flag specifying how to compare element
 Javascript equivalent for PHP's *
kevin.vanzonneveld > techblog/article/javascript equivalent for

 goldvision.com - PHP / *
goldvision > us/en/manuals

 PHP Manual: *
nusphere > kb

 Array * the reverse sort
plus2net

it is very human view that you help others by displaying your...
function we can retain the index or indices associated with...

  * () Function
kenhmuaban > manual

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

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

 PHP Editor Review - Php Manual Function *
php editors

 PHP : * - Sort an array in reverse order and maintain index association
thaicreate

  * PHP ManualPrevNext * (PHP 3, PHP 4 ) * -- Sort an array in reverse order and maintain index association Descripti...
manualy.zcu

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

  * : Sort an array in reverse order and maintain index association : Array sort « Data Structure « PHP
java2s > Code

Pass a second parameter to the sort functions to specify how you want...
Using uasort() to Sort a Multdimensional Associative Array by One of...

 [PHP-ES] ayuda con * :: ASPN Mail Archive :: php-spanish
aspn.activestate > ASPN/Mail/Message

 PHP - 函数: * ()
study.chyangwa > IT

  * - PHP manual
phpf1 > manual/arsort

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

arsort Sort an array in reverse order and maintain index...

 function. * - PHP Manual - Cheap Web Hosting Providers
cheaphostdir > reference

 PHP Blog » *
vaziliy > blog/?tag=arsort

 function * (standard)
zugeschaut und mitgebaut

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

Kaspersky Lab ist ein weltweit führendes Unternehmen, dessen...
Download – Compare – Decide! Build Your Best, Without Limits or...
Die Online-Abteilung der ehemaligen VNU Business Publications...

 arsort
phpspot



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 :