updated preg_match() example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@28667 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Monte Ohrt 2000-07-20 18:03:35 +00:00
parent 1bc17e3bdc
commit fdb870870c

View file

@ -107,6 +107,11 @@ if (preg_match ("/page\s+#(\d+)/i", "Go to page #9.", $parts)) {
echo "domain name is: ".$matches[2]."\n";
</programlisting>
</example>
This example will produce:
<programlisting>
domain name is: php.net
</programlisting>
<example>
See also <function>preg_match_all</function>,
<function>preg_replace</function>, and
<function>preg_split</function>.