mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
1bc17e3bdc
commit
fdb870870c
1 changed files with 5 additions and 0 deletions
|
@ -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>.
|
||||
|
|
Loading…
Reference in a new issue