ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:recordset:fieldtypesarray

This is an old revision of the document!


fieldTypesArray

See Also

fetchField

Syntax
array fieldTypesArray()

Description

The method returns an array of ADOFieldObjects representing all of the objects returned in a result set. It is the equivalent of looping from 1 to fieldCount , calling the fetchField method. The method returns false if a recordset is not available for any reason


Example

$sql = "SELECT * FROM employees";
 
$result = $db->execute($sql)
 
print_r($results->fieldTypesArray());
v5/reference/recordset/fieldtypesarray.1620177431.txt.gz · Last modified: 2021/05/05 03:17 by mnewnham