ID: 30796
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
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