Re: note 39923 rejected on strings

From: Date: Tue, 17 Feb 2004 08:52:26 +0000
Subject: Re: note 39923 rejected on strings
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-23514@lists.php.net to get a copy of this message
Hi Xorith,
Hi, I can't find a place to lodge a complaint. My post wasn't, as the email stated, requesting a feature OR reporting a bug. I simply provided a function for other users incase they needed it as I did. To further that, I tested it, unlike some of the self-proclaimed untested functions found all over the site. This, coupled with the way a few others in the PHP community have treated me, is really leaving me bitter. :( Shame that such a strong language has to have a community that doesn't quite support its users. Copy of my note is below: ----- Copy of your note below ----- I didn't see any way in PHP to append text to a string starting at a certain index. That is, rather than tacking it onto the end, have it tack the text on half-way through the string.
This sentence was probably the problem. Don't you know the substr_replace function ? $str = "fooo"; echo substr_replace($str, "bar", -1); // foobar This is what you want IMHO. didou

« previous php.mirrors (#23514) next »