Skip to content

PHP Reference Book Blog

PHP Reference: Beginner to Intermediate PHP5

Get the Book

  • Purchase
  • Free PDF
  • ePub Format
  • HTML Version
  • Corrections

Post Categories

  • Author Notes (1)
  • Clarifications (4)
  • Corrections (10)
  • Miscellaneous (7)
  • Samples (4)
  • Tips (14)

Tags

$_GET $_SERVER addslashes alphanumeric array_key_exists carriage return define easy ebook Function functions global include include_once index isset kindle language construct MySQL mysql_real_escape_string new line newline PCRE PERL php php5 php errors precision preg preg_match preg_replace query string query_string regular expression regular expressions require require_once sample security simple sprintf sql injection tab tip variables

preg_match()

(page 156-157)
preg_match()
In the last sentence, it includes some extraneous words: ”number of matches”. It should simply read:

Returns: 1 if matched, 0 if no match, and FALSE on error.

Similar Posts:

  • array_flip() function typo
  • mysql_result() correction
  • Testing Regular Expressions with Color Highlighting
  • Index: array_combine() array_key_exists()
  • PHP Errors – 10 Common Mistakes

Posted on June 17, 2011September 28, 2011Author Mario LurigCategories CorrectionsTags preg_match

Post navigation

Previous Previous post: Check for Common Mistakes in PHP Code
Next Next post: MySQL Update Multiple Columns Query
Proudly powered by WordPress