On Mon, Mar 28, 2005 at 11:29:28AM +1200, Jasper Bryant-Greene wrote:
> Rasmus Lerdorf wrote:
> >>>Jasper Bryant-Greene wrote:
> >>>>You can't access string offsets with square brackets [] in PHP5. You 
> >>>>need to use curly braces {} instead.
> >>>
> >>>Not sure where you got that idea.  This is not true.
> >>>
> >>>-Rasmus
> >>
> >>Actually, it is. See the following URL:
> >>
> >>http://www.php.net/manual/en/language.types.string.php#language.types.string.substr
> >> 
> >
> >Yes, please read that link again.  The syntax is deprecated.  That 
> >doesn't mean it doesn't work as you indicated.  If we broke this most of 
> >the scripts written for PHP4 would break.
> >
> >-Rasmus
> 
> Yes, but he's talking about PHP5. He probably has E_STRICT on, which is
> why he's getting that error.
> 
> I was telling him to use the correct syntax, which will cause him to not
> get that error.
> 
> Best regards
> 
> -- 
> Jasper Bryant-Greene
> Cabbage Promotions
> www:   www.cabbage.co.nz
> email: [EMAIL PROTECTED]
> phone: 021 232 3303
> 
> public key:  Jasper Bryant-Greene <[EMAIL PROTECTED]> keyID 0E6CDFC5
> fingerprint: 2313 5641 F8F6 5606 8844 49C0 1D6B 2924 0E6C DFC5
> 

You do realize you're arguing with Rasmus, right?

-- 
Jim Kaufman
Linux Evangelist
public key 0x6D802619, CISSP# 65668

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

Reply via email to