$ php _ errormsg is a variable containing the text of the last error message generated by php this variable will only be available within the scope in which the error occurred and only if the track _ errors configuration option is turned on it defaults to off 