Typos, added text to clarify ereg array.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@30170 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ron Chmara 2000-08-12 20:50:55 +00:00
parent 18cb02cea8
commit db7f8bfa86

View file

@ -93,14 +93,14 @@ $string = ereg_replace ("\n", "", $string);
</funcprototype>
</funcsynopsis>
<simpara>
Searchs <parameter>string</parameter> for matches to the regular
Searches a <parameter>string</parameter> for matches to the regular
expression given in <parameter>pattern</parameter>.
</simpara>
<simpara>
If matches are found for parenthesized substrings of
<parameter>pattern</parameter> and the function is called with
the third argument <parameter>regs</parameter>, the matches will
be stored in the elements of
be stored in the elements of the array
<parameter>regs</parameter>. $regs[1] will contain the substring
which starts at the first left parenthesis; $regs[2] will contain
the substring starting at the second, and so on. $regs[0] will