oci_parse Prepares an Oracle statement for execution &reftitle.description; resourceoci_parse resourceconnection stringsql_text Prepares sql_text using connection and returns the statement identifier, which can be used with oci_bind_by_name, oci_execute and other functions. Statement identifiers can be freed with oci_free_statement or by setting the variable to null. &reftitle.parameters; connection An Oracle connection identifier, returned by oci_connect, oci_pconnect, or oci_new_connect. sql_text The SQL or PL/SQL statement. SQL statements should not end with a semi-colon (";"). PL/SQL statements should end with a semi-colon (";"). &reftitle.returnvalues; Returns a statement handle on success, or &false; on error. &reftitle.examples; <function>oci_parse</function> example for SQL statements \n"; while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) { echo "\n"; foreach ($row as $item) { echo " " . ($item !== null ? htmlentities($item, ENT_QUOTES) : " ") . "\n"; } echo "\n"; } echo "\n"; ?> ]]> <function>oci_parse</function> example for PL/SQL statements ]]> &reftitle.notes; This function does not validate sql_text. The only way to find out if sql_text is a valid SQL or PL/SQL statement is to execute it. In PHP versions before 5.0.0 use ociparse instead. &oci.name.compat.note; &reftitle.seealso; oci_execute oci_free_statement