SEO Forums















                                          
User   Password   remember     (register)  ?

PHP asort


Back to php.


moderator    (2008-08-02)

moderator

 
PHP asort

Definition and Usage

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

Syntax

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

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


The output of the code above will be:

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



ficgs
Suggestions

 PhpDig.net - PHP - asort
www.phpdig.net/ref/rn03re38.html

 Javascript equivalent for PHP's asort
kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_asor

 PHP: asort - Manual
php.benscom.com/manual/ja/function.asort.php

 PHP: asort - Manual
algorytmy.pl/doc/php/function.asort.php

 PHP: Collator::asort - Manual
php.mirror.facebook.com/manual/en/collator.asort.php

 PHP asort() bug? [Archive] - FutureQuest Community
www.aota.net/forums/archive/index.php/t-16510.html



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 Manual: asort
www.nusphere.com/kb/phpmanual/function.asort.htm

 PHP: asort - Manual
php.filearena.net/manual/kr/function.asort.php

 PHP : asort - Sort an array and maintain index association
www.thaicreate.com/php-manual/function.asort.html

 PHP :: "asort" Is Not Doing What It Is Supposed To Do
www.bigresource.com/PHP-asort-is-not-doing-what-it-is-supposed-to-do-PwM2VP

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

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

 PHP: asort
pixel.fpn.hu/kezikonyv/function.asort.php

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

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

 JavaScript asort - PHP.JS
phpjs.org/functions/asort:354

 WikiAnswers - Difference between sort and asort in php
wiki.answers.com/Q/Difference_between_sort_and_asort_in_php

 php asort nesortuje, ale asortuje :)
forum.ubuntu.cz/index.php?topic=34166.0

 Sort array maintaining index association
myblog.arps.co.il/php_manual/collator.asort.html

 WeberDev.com -> PHP Manual -> Sort an array and maintain index association
www.weberdev.com/Manuals/PHP/function.asort.html

 Variables and Constants in PHP
services.exeter.ac.uk/cmit/modules/programming/webct/ch05.html

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

 PHP特化型検索エンジン
www.zuzara.com/pub/yphp/index.php?query=array&start=41

 Help -- SELECT Function PHP Script - WebProWorld
www.webproworld.com/web-programming-discussion-forum/69491-help-select-func

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

 PHP 基礎編8 - 配列操作、sort、asort、ksort、array_push、array_shift - SAK Streets
homepage2.nifty.com/sak/w_sak3/doc/sysbrd/php_k08.htm

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

 PHP syntax: sort an associative array by value with asort | PHP programming | Tech-Recipes
www.tech-recipes.com/rx/299/php-syntax-sort-an-associative-array-by-value-w

 HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> asortPHP ManualPrevNextasort (PHP 3, PHP 4 , PHP 5)asort -- Sort an array and maint...
www.thai-programmer.com/master/php.manual.en/function.asort.html

 STUDIO WING .lib: PHP:asort()関数・arsort()関数
lib.stwing.jp/archives/2005/11/phpasortarsort.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



 
Please download Flash player.
March 11, 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 !
(works with Twitter, Facebook, MySpace, Youtube, MSN, Yahoo, Bebo, Hi5...)







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 :