Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use sybase_fetch_array in php

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "the use of sybase_fetch_array in php", the explanation in the article is simple and clear, easy to learn and understand, please follow the idea of Xiaobian slowly in-depth, together to study and learn "the use of sybase_fetch_array in php"!

Returns array data.

Syntax: array sybase_fetch_array(int result);

Return value: Array

Function type: Database function

content description

This function is used to split the query result into array variables. If result has no data, it returns false. This function can be said to be an enhancement function of sybase_fetch_row(). In addition to putting the return column and numerical index into the array, you can also put the text index into the array.

use case

Here's an example from joey@samaritan.com(22-Feb-1999)

Example 1:

The copy code is as follows:

Return information is as follows

$op[0] => 2164

$op[computed] => 2164

Example 2:

The copy code is as follows:

The above example would produce the following output (assuming the two tables only have each one column called "person_id"):

The copy code is as follows:

array(4) {

[0]=>

int(1)

["person_id"]=>

int(1)

[1]=>

int(1)

["person_id1"]=>

int(1)

}

Thank you for reading, the above is the "php sybase_fetch_array use method" content, after the study of this article, I believe we have a deeper understanding of the php sybase_fetch_array use method, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report