1) Try something like:
<?php
$pno = 10;
$conn = OCILogon("yourusername", "yourpassword", "yourdbservicename");
$stmt = OCIParse($conn, "begin :name := test_function(:pno); end;");
OCIBindByName($stmt, ":pno", &$pno, -1);
OCIBindByName($stmt, ":name", &$name, 11);
$result = OCIExecute($stmt);
OCIFreeStatement($stmt);
OCILogoff($conn);
echo $name;
?>
2) All the Collection functions are listed as "Coming soon." and "(PHP 4 >= 4.0.6)". See http://www.php.net/manual/en/ref.oci8.php
-- Michael
Darkstreak Computing & Innovations
www.darkstreak.com