From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4CVS-2004-11-15 (stable) PHP Bug Type: Feature/Change Request Bug description: String Write
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 bug report at http://bugs.php.net/?id=30796&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30796&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30796&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30796&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30796&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30796&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30796&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30796&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30796&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30796&r=support Expected behavior: http://bugs.php.net/fix.php?id=30796&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30796&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30796&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30796&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30796&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30796&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30796&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30796&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30796&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30796&r=mysqlcfg