On 29/09/2012, at 1:29 AM, Chris Payne <oxygene...@gmail.com> wrote:

> Hi there everyone,
> 
> I basically have the following code, which grabs the 3 numbers to the right:
> 
> $input = "250705023";
> 
> $resta = substr($input, -3, 3);
> 
> Then I manipulate them a little, but my question is - how, once i've used
> them to create different values - can I put them back in the original
> string at the same location?
> 
> Got me a bit confused.
> 
> Chris



One way: $input = substr($input, 0, -3) . $resta;
---
Simon Welsh
Admin of http://simon.geek.nz/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to