Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

error_get_last(3) [php man page]

ERROR_GET_LAST(3)							 1							 ERROR_GET_LAST(3)

error_get_last - Get the last occurred error

SYNOPSIS
array error_get_last (void ) DESCRIPTION
Gets information about the last error that occurred. RETURN VALUES
Returns an associative array describing the last error with keys "type", "message", "file" and "line". If the error has been caused by a PHP internal function then the "message" begins with its name. Returns NULL if there hasn't been an error yet. EXAMPLES
Example #1 An error_get_last(3) example <?php echo $a; print_r(error_get_last()); ?> The above example will output something similar to: Array ( [type] => 8 [message] => Undefined variable: a [file] => C:WWWindex.php [line] => 2 ) SEE ALSO
Error constants, Variable $php_errormsg, Directive $display_errors, Directive $html_errors, Directive $xmlrpc_errors. PHP Documentation Group ERROR_GET_LAST(3)

Check Out this Related Man Page

PG_FETCH_ALL(3) 														   PG_FETCH_ALL(3)

pg_fetch_all - Fetches all rows from a result as an array

SYNOPSIS
array pg_fetch_all (resource $result) DESCRIPTION
pg_fetch_all(3) returns an array that contains all rows (records) in the result resource. Note This function sets NULL fields to the PHP NULL value. PARAMETERS
o $result - PostgreSQL query result resource, returned by pg_query(3), pg_query_params(3) or pg_execute(3) (among others). RETURN VALUES
An array with all rows in the result. Each row is an array of field values indexed by field name. FALSE is returned if there are no rows in the result, or on any other error. EXAMPLES
Example #1 PostgreSQL fetch all <?php $conn = pg_pconnect("dbname=publisher"); if (!$conn) { echo "An error occurred. "; exit; } $result = pg_query($conn, "SELECT * FROM authors"); if (!$result) { echo "An error occurred. "; exit; } $arr = pg_fetch_all($result); print_r($arr); ?> The above example will output something similar to: Array ( [0] => Array ( [id] => 1 [name] => Fred ) [1] => Array ( [id] => 2 [name] => Bob ) ) SEE ALSO
pg_fetch_row(3), pg_fetch_array(3), pg_fetch_object(3), pg_fetch_result(3). PHP Documentation Group PG_FETCH_ALL(3)
Man Page