|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-15 18:46 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
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*