Re: [PHP] Looking at individual chars of string

2003-03-17 Thread Bix
Cheers buddy! "Erik Price" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Bix wrote: > > Is it possible to look at individual chars of a string? > > > > eg: $str = "12345"; > > > > print $str_1 // Gives "1" > > print $str_2 // Gives "2" > > Try this: > >print $str{0}; // giv

Re: [PHP] Looking at individual chars of string

2003-03-17 Thread Erik Price
Bix wrote: Is it possible to look at individual chars of a string? eg: $str = "12345"; print $str_1 // Gives "1" print $str_2 // Gives "2" Try this: print $str{0}; // gives "1" print $str{1}; // gives "2" Erik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http