ora_fetch_into

(PHP 3, PHP 4 )

ora_fetch_into -- Lit une ligne de résultat Oracle dans un tableau

Description

int ora_fetch_into ( resource cursor, array result [, int flags])

ora_fetch_into() lit la ligne courante du résultat cursor dans le tableau result.

ora_fetch_into() retourne le nombre de colonnes lues.

Exemple 1. Exemple avec ora_fetch_into()

<?php
$results
= array();
ora_fetch_into($cursor, $results);
echo
$results[0];
echo
$results[1];
$results = array();
ora_fetch_into($cursor, $results, ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC);
echo
$results['MyColumn'];
?>
Notez que vous devez passer le tableau par référence;

Voir aussi ora_parse(), ora_exec(), ora_fetch() et ora_do().