Doc #60230 [Opn->Csd]: Parameters to explain the role of error
| From: | laruence@php.net | Date: | Mon, 07 Nov 2011 07:32:06 +0000 |
| Subject: | Doc #60230 [Opn->Csd]: Parameters to explain the role of error | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7394@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60230&edit=1
ID: 60230
Updated by: laruence@php.net
Reported by: yanghbmail at 126 dot com
Summary: Parameters to explain the role of error
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: windows xp
PHP Version: 5.3.8
-Assigned To:
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2011-11-07 07:31:47] laruence@php.net
Automatic comment from SVN on behalf of laruence
Revision: http://svn.php.net/viewvc/?view=revision&revision=318874
Log: Fixed doc bug #60230 Parameters to explain the role of error
------------------------------------------------------------------------
[2011-11-07 06:53:39] yanghbmail at 126 dot com
Description:
------------
---
From manual page: http://www.php.net/function.str-replace#refsect1-function.str-replace-parameters
---
str_replace
count
If passed, this will be set to the number of replacements performed.
May be wrong
The role is to count.
this return a count, Not match the number of control.
Thanks!
--------------------------------
str_replaceä¸ç第åä¸ªåæ°countçä½ç¨çè§£é似乿¯é误çã
å®çä½ç¨æ¯è¿åå¹é
çæ¬¡æ°ï¼è䏿¯è®¾ç½®å¹é
çæ¬¡æ°ã
谢谢ï¼
Test script:
---------------
$str = 'THIS IS PHP,PHP IS VERY GOOD!I LIKE PHP VERYMUCH';
$search = 'PHP';
$replace = '<a href="http://www.php.net">PHP</a>';
$count=1;
echo str_replace($search, $replace, $str,$count) ;
echo ' >'.$count;
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60230&edit=1