当前位置: 移动技术网 > IT编程>开发语言>PHP > php关联数组与索引数组及其显示方法

php关联数组与索引数组及其显示方法

2018年03月29日  | 移动技术网IT编程  | 我要评论

数据

username password 
test 123456

关联数组:

 mysql_fetch_assoc()
 array([username]=>'test',[password]=>'123456')

索引数组:

mysql_fetch_array()
array([0]=>'test',[1]=>'123456')

var_export()

array ( 0 => 1, 1 => 'a', 2 => 'hello', )

var_dump()

array(3) { [0]=> int(1) [1]=> string(1) "a" [2]=> string(5) "hello" }

以上这篇php关联数组与索引数组及其显示方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持移动技术网。

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网