Code Examples / Notes » ora_fetch_into

herve3d

With : ora_fetch_into($curs, &$dt, ORA_FETCHINTO_ASSOC)
If the value of a field is NULL it will contains value from the row before.
To avoid this you can use :
ora_fetch_into($curs, $dt, ORA_FETCHINTO_NULLS|ORA_FETCHINTO_ASSOC);
And NULL fields remain empty.

markus dot elfring

The function "OCIFetchInto" seems to be better for special datatypes like "CLOB" or "BLOB".