Pārlūkot izejas kodu

ZF-10822: Applying patch from Udo Telaar. Fixed documentation for Zend_Filter_PregReplace

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23519 44c647ce-9c0f-0410-b52a-842ac1e357ba
bittarman 15 gadi atpakaļ
vecāks
revīzija
2dd5d3c455

+ 2 - 2
documentation/manual/de/module_specs/Zend_Filter-PregReplace.xml

@@ -22,9 +22,9 @@
     </para>
 
     <programlisting language="php"><![CDATA[
-$filter = new Zend_Filter_PregReplace(array('match' => 'bob',
+$filter = new Zend_Filter_PregReplace(array('match' => '/bob/',
                                             'replace' => 'john'));
-$input  = 'Hy bob!";
+$input  = 'Hy bob!';
 
 $filter->filter($input);
 // Gibt 'Hy john!' zurück

+ 2 - 2
documentation/manual/en/module_specs/Zend_Filter-PregReplace.xml

@@ -52,9 +52,9 @@
         </para>
 
         <programlisting language="php"><![CDATA[
-$filter = new Zend_Filter_PregReplace(array('match' => 'bob',
+$filter = new Zend_Filter_PregReplace(array('match' => '/bob/',
                                             'replace' => 'john'));
-$input  = 'Hy bob!";
+$input  = 'Hy bob!';
 
 $filter->filter($input);
 // returns 'Hy john!'

+ 2 - 2
documentation/manual/fr/module_specs/Zend_Filter-PregReplace.xml

@@ -22,9 +22,9 @@
     </para>
 
     <programlisting language="php"><![CDATA[
-$filter = new Zend_Filter_PregReplace(array('match' => 'bob',
+$filter = new Zend_Filter_PregReplace(array('match' => '/bob/',
                                             'replace' => 'john'));
-$input  = 'Hy bob!";
+$input  = 'Hy bob!';
 
 $filter->filter($input);
 // returns 'Hy john!'