note 88029 deleted from function.preg-last-error by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: luky37 

----

the following function decodes this message for you:

<?php
function pcre_error_deocde() {
	switch (preg_last_error()) {
		case PREG_NO_ERROR:
			print "pcre_error: PREG_NO_ERROR!\n";
			break;
		case PREG_INTERNAL_ERROR:
			print "pcre_error: PREG_INTERNAL_ERROR!\n";
			break;
		case PREG_BACKTRACK_LIMIT_ERROR:
			print "pcre_error: PREG_BACKTRACK_LIMIT_ERROR!\n";
			break;
		case PREG_RECURSION_LIMIT_ERROR:
			print "pcre_error: PREG_RECURSION_LIMIT_ERROR!\n";
			break;
		case PREG_BAD_UTF8_ERROR:
			print "pcre_error: PREG_BAD_UTF8_ERROR!\n";
			break;
		case PREG_BAD_UTF8_OFFSET_ERROR:
			print "pcre_error: PREG_BAD_UTF8_OFFSET_ERROR!\n";
			break;
	}
}
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.