svn: /phpdoc/en/trunk/reference/strings/functions/ addslashes.xml

From: Date: Mon, 01 Sep 2014 16:21:45 +0000
Subject: svn: /phpdoc/en/trunk/reference/strings/functions/ addslashes.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12769@lists.php.net to get a copy of this message
daverandom Mon, 01 Sep 2014 16:21:45 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=334702 Log: Proper noun casing fix -- Provided by anonymous 48275 Changed paths: U phpdoc/en/trunk/reference/strings/functions/addslashes.xml Modified: phpdoc/en/trunk/reference/strings/functions/addslashes.xml =================================================================== --- phpdoc/en/trunk/reference/strings/functions/addslashes.xml 2014-09-01 16:20:30 UTC (rev 334701) +++ phpdoc/en/trunk/reference/strings/functions/addslashes.xml 2014-09-01 16:21:45 UTC (rev 334702) @@ -21,7 +21,7 @@ <para> An example use of <function>addslashes</function> is when you're entering data into string that is evaluated by PHP. For example, - <literal>O'reilly</literal> is stored in $str, you need to escape + <literal>O'Reilly</literal> is stored in $str, you need to escape $str. (e.g. eval("echo '".addslashes($str)."';"); ) </para> <para> @@ -89,9 +89,9 @@ <programlisting role="php"> <![CDATA[ <?php -$str = "Is your name O'reilly?"; +$str = "Is your name O'Reilly?"; -// Outputs: Is your name O\'reilly? +// Outputs: Is your name O\'Reilly? echo addslashes($str); ?> ]]>

« previous php.doc.cvs (#12769) next »