= 8.3.0)cubrid_data_seek — Move the internal row pointer of the CUBRID result說明cubrid_data_seek(resource $result, int $r">
(PECL CUBRID >= 8.3.0)
cubrid_data_seek — Move the internal row pointer of the CUBRID result
$result, int $row_number): bool
This function performs the moving of the internal row pointer of the
CUBRID result (associated with the specified result identifier) to point
to a specific row number. There are functions, such as
cubrid_fetch_assoc(), which use the current stored
value of row number.
resultThe result.
row_numberThis is the desired row number of the new result pointer.
Returns true on success or false on failure.
示例 #1 cubrid_data_seek() example
以上例程會(huì)輸出:
array(2) {
[0]=>
string(1) "X"
[1]=>
string(5) "Mixed"
}
array(2) {
[0]=>
string(1) "M"
[1]=>
string(3) "Man"
}
array(2) {
[0]=>
string(1) "S"
[1]=>
string(6) "Silver"
}