Home  >  Article  >  Backend Development  >  php Sort function example

php Sort function example

WBOY
WBOYOriginal
2016-07-23 08:54:55930browse
  1. $states = array('OH' => 'Ohio', 'CA' => 'California', 'MD' => 'Maryland');
  2. sort($states );
  3. print_r($states);
  4. ?>
Copy code
php, Sort


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP convert text to imageNext article:PHP convert text to image