SEO Forums















                                          
User   Password   remember     (register)  ?

PHP krsort


Back to php.


moderator    (2008-08-02)

moderator

 
PHP krsort

Definition and Usage

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

Syntax

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

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


The output of the code above will be:

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



ficgs
Suggestions

 Javascript equivalent for PHP's krsort
kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_krso

 PhpDig.net - PHP - krsort
www.phpdig.net/ref/rn03re47.html

 PHP krsort() error fixed - ScriptLance Programming Project
www.scriptlance.com/projects/1076289851.shtml

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

 Array Key reverse sort by krsort
www.plus2net.com/php_tutorial/array-krsort.php

 PHP: krsort - Manual
php.mirrors.powertrip.co.za/manual/fi/function.krsort.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 함수 - PHP krsort
flashcafe.org/php_function/8653/page/129

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

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

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

 HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> krsortPHP ManualPrevNextkrsort (PHP 3>= 3.0.13, PHP 4 , PHP 5)krsort -- Sort an...
php.activeventure.com/function/j-l/function.krsort.html

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

 配列をキーで逆順にソートする - PHPプロ!マニュアル
www.phppro.jp/phpmanual/php/function.krsort.html

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

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

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

 PHPXRef 0.7 : WordPress : Function Reference: krsort()
phpxref.ftwr.co.uk/wordpress/_functions/krsort.html

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

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

 krsort()
www.phorum.org/phorum5/read.php?2,21569

 Bug #17257: rsort (and krsort) broken :: ASPN Mail Archive :: php-Dev
aspn.activestate.com/ASPN/Mail/Message/php-Dev/1205835

  [Xaraya_bugs] [Bug 4538] New: xarclass/xarcss.class.php (Line: 221) krsort() expects parameter 1 to be array, null given
www.xaraya.com/pipermail/xaraya_bugs/2005-May/008667.html

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

 krsortPHP ManualPrevNextkrsort (PHP 3>= 3.0.13, PHP 4 )krsort -- Sort an array by key in reverse orderDescriptionint krsort ( array a...
ific.uv.es/informatica/manuales/php/function.krsort.html

 ire_once('admin.php'); require_once( ABSPATH . WPINC . '/registration-functions.php'); $title = __('Users'); $parent_file = 'users.php'; $action = ...
source.ibiblio.org/svn/lyceum/tags/1.0-RC3/src/lyceum/wp-admin/users.php

 FAIL Test arsort, asort, krsort, ksort, rsort, and: msg#00437 php.quality-assurance
osdir.com/ml/php.quality-assurance/2002-10/msg00437.html

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



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

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 :