<?php
$conn = OCILogon("digicol","digicol");
 
$curs = OCINewCursor($conn);
 
$stmt = OCIParse($conn,"begin info.output(:data); end;");
 
ocibindbyname($stmt,":data",&$curs,-1,OCI_B_CURSOR);
 
ociexecute($stmt);
 
ociexecute($curs); // start working with our ref-cursor
 
while (OCIFetchInto($curs,&$data)) {
    var_dump($data);
}
?>
