时时商务社区

标题: php sybase_fetch_array使用方法 [打印本页]

作者: 网络通达    时间: 2018-2-14 05:59

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




    欢迎光临 时时商务社区 (http://bbs.4435.cn/) Powered by Discuz! X3.2