Home  >  Article  >  php教程  >  php 数组函数实例

php 数组函数实例

WBOY
WBOYOriginal
2016-06-16 08:39:271127browse

数组的概念

数组(array)是 PHP 中一个非常重要的概念,我们可以把数组看做一系列类似的数据的集合,实际上数组是一个有序图。

PHP 还提供了超过 70 个内建函数来操作数组。

由于数组在php中比较重要,并且不易掌握,本节将使用实例进行一一讲解。

  1. PHP 数组基本操作
  2. PHP print_r 与 var_dump 输出数组
  3. PHP is_array() 检测变量是否是数组
  4. PHP 数组遍历 foreach 语法结构
  5. PHP 数组之count 函数
  6. PHP 检查数组中是否存在某个值 in_array 函数
  7. PHP array_key_exists检查键名或索引是否存在于数组中
  8. PHP 在数组中搜索给定的值 array_search 函数
  9. PHP list() 将数组中的值赋给变量
  10. PHP 数组排序 sort、asort 及 ksort 系列函数
  11. PHP 对多个数组或多维数组进行排序 array_multisort 函数
  12. PHP 将数组打乱 shuffle 函数

 

原文地址:http://www.manongjc.com/php/php_array.html

相关阅读:

php 表单form提交详细分析

php 文件上传$_FILES error错误码

php 文件上传实例讲解与分析

php 一个非常简单的文件上传实例demo

php 实现文件上传的源代码

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