您好,欢迎访问一九零五行业门户网

php sybase_fetch_array使用方法_PHP

sybase
返回数组资料。
语法: array sybase_fetch_array(int result);
返回值: 数组
函数种类: 数据库功能
内容说明
本函数用来将查询结果 result 拆到数组变量中。若 result 没有资料,则返回 false 值。而本函数可以说是 sybase_fetch_row() 的加强函数,除可以将返回列及数字索引放入数组之外,还可以将文字索引放入数组中。
使用范例
这是 joey@samaritan.com (22-feb-1999) 所提出的例子
实例1:
复制代码 代码如下:
$v\n;
}
?>
返回资料如下
$op[0] => 2164
$op[computed] => 2164
实例2:
复制代码 代码如下:
the above example would produce the following output (assuming the two tables only have each one column called person_id):
复制代码 代码如下:
array(4) {
  [0]=>
  int(1)
  [person_id]=>
  int(1)
  [1]=>
  int(1)
  [person_id1]=>
  int(1)
}
其它类似信息

推荐信息