[DGD] Re: casting nil (another idea...)

Michael McKiel crashnbrn71 at yahoo.ca
Tue Mar 23 23:56:39 CET 2004


 --- Michael McKiel <crashnbrn71 at yahoo.ca> wrote: >  
> I use an implementation of substr() to do that, though admittedly,
> substr("test", 2, 6) is hardly as pretty ;)

Sorry thats a bit wrong, the varargs 3rd arg of substr is the size you want
to return, so substr("test", 2, 2)
Though if you give it a size thats larger than the provided string it just
returns maxLen



______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list