php-general | 2001032
Date: 03/28/01
- Next message: Daniel B I: "[PHP] Re: $myfile[$count]_type?!"
- Previous message: Renze Munnik: "Re: [PHP] GZip + NS + Print = Trouble"
- Next in thread: Stuart J. Browne: "Re: [PHP] pattern match help"
- Reply: Stuart J. Browne: "Re: [PHP] pattern match help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
$str = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
I need to fetch the 5th charcter after ".....compatible; M" in $str (ie
'5').
- The following gets me the fifth character along (ie 'l')
$variable = substr ($str, 5, 1);
How do i tell the substr to start counting from ".....compatible; M(start
here)"
THanks
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Daniel B I: "[PHP] Re: $myfile[$count]_type?!"
- Previous message: Renze Munnik: "Re: [PHP] GZip + NS + Print = Trouble"
- Next in thread: Stuart J. Browne: "Re: [PHP] pattern match help"
- Reply: Stuart J. Browne: "Re: [PHP] pattern match help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

