Edit report at https://bugs.php.net/bug.php?id=39962&edit=1
ID: 39962 Updated by: ni...@php.net Reported by: pjoe444 at hotmail dot com Summary: Suggestion: SUBSTR_ADD Function -Status: Open +Status: Wont fix Type: Feature/Change Request Package: *General Issues PHP Version: 5.2.0 Block user comment: N Private report: N New Comment: Closing this, as it can be easily done with substr_replace() already: $var = substr_replace($var, ':', 2, 0); Doesn't make much sense to add an extra function for this. Previous Comments: ------------------------------------------------------------------------ [2011-08-23 15:37:55] datib...@php.net The following patch has been added/updated: Patch Name: substr_insert.patch Revision: 1314113875 URL: https://bugs.php.net/patch-display.php?bug=39962&patch=substr_insert.patch&revision=1314113875 ------------------------------------------------------------------------ [2011-08-23 14:28:57] ar...@php.net substr_replace() already provides this when the length argument is 0. ------------------------------------------------------------------------ [2011-08-23 14:08:50] datib...@php.net The following patch has been added/updated: Patch Name: substr_insert.patch Revision: 1314108530 URL: https://bugs.php.net/patch-display.php?bug=39962&patch=substr_insert.patch&revision=1314108530 ------------------------------------------------------------------------ [2011-08-23 14:05:14] datib...@php.net The following patch has been added/updated: Patch Name: substr_insert.patch Revision: 1314108314 URL: https://bugs.php.net/patch-display.php?bug=39962&patch=substr_insert.patch&revision=1314108314 ------------------------------------------------------------------------ [2006-12-27 14:55:17] pjoe444 at hotmail dot com ( SUBTRACTION, on the other hand, does work simply enough with the current system: with SUBSTR_REPLACE being able to replace a character with an empty string "" ) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=39962 -- Edit this bug report at https://bugs.php.net/bug.php?id=39962&edit=1