Declarar:
$var = "AAAV1vAAGAAIb4CAAC";
Usar:
INSERT INTO myTable (...) VALUES ( ...)
RETURNING RowId INTO :p_val
Vincule sua variável a uma variável PHP:
oci_bind_by_name($statement, ":p_val", $val, 18);
$var = "AAAV1vAAGAAIb4CAAC";
INSERT INTO myTable (...) VALUES ( ...)
RETURNING RowId INTO :p_val
oci_bind_by_name($statement, ":p_val", $val, 18);