For the benefit of others, I found an example, which is shown below:
$data = array("larry","bill","steve");
$db = OCILogon("scott","tiger");
$stmt = OCIParse($db,"insert into names values (myid.nextval,:name) returning id into :id");
OCIBindByName($stmt,":ID",$id,32);
OCIBindByName($stmt,":NAME",$name,32);
while (list(,$name) = each($data)) {
OCIExecute($stmt);
echo "$name got id:$id\n";
}
For more detail, see http://www.php-conference.de/2001/slides/arntzen_ocipaper.txt
Thanks to Thies C. Arntzen for this example.
-phil