Doc #54519 [Opn->Asn]: substr_replace array options not documented

From: Date: Tue, 19 Apr 2011 06:57:48 +0000
Subject: Doc #54519 [Opn->Asn]: substr_replace array options not documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6259@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54519&edit=1 ID: 54519 Updated by: aharvey@php.net Reported by: stas@php.net Summary: substr_replace array options not documented -Status: Open +Status: Assigned Type: Documentation Problem Package: Documentation problem Operating System: * PHP Version: Irrelevant -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2011-04-13 08:00:35] stas@php.net Description: ------------ substr_replace accepts arguments not only as strings but as arrays, and judging from SVN it is there for many years, but the manual says nothing about this option. Test script: --------------- var_dump(substr_replace(array("foo","bar"),array("baz","blah"),array(1,2))); Actual result: -------------- array(2) { [0]=> string(4) "fbaz" [1]=> string(6) "bablah" } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54519&edit=1

« previous php.doc.bugs (#6259) next »