#30796 [Opn->WFx]: String Write
| From: | derick@php.net | Date: | Mon, 15 Nov 2004 17:46:37 +0000 |
| Subject: | #30796 [Opn->WFx]: String Write | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69098@lists.php.net to get a copy of this message | ||
ID: 30796
Updated by: derick@php.net
Reported By: bug@php.net
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4CVS-2004-11-15 (stable)
New Comment:
You can easily do this in userspace, and recoding this in C won't make
it much faster.
Previous Comments:
------------------------------------------------------------------------
[2004-11-15 18:02:01] bug@php.net
Description:
------------
Please add a function that is directly able to add a char or word at a
numeric place in a string.
Reproduce code:
---------------
// For example:
str_ins([inser string], [int position], [string haystack]);
// For use like this:
$longtext = 'This is a long text...';
$found = 7;
echo str_ins("_a", $found-2, $longtext);
Expected result:
----------------
This_a is a long text...
Actual result:
--------------
An error *lol*
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30796&edit=1