RE: [PHP] parse text

From: Date: Wed, 19 Jun 2002 09:33:57 +0000
Subject: RE: [PHP] parse text
Groups: php.general 
Request: Send a blank email to php-general+get-102903@lists.php.net to get a copy of this message
You could do it using the substring it you ALWAYS for each line want the characters at that exact location. $moo = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $partition = substr($moo, 9, 5); this would return 5 characters from position 9 in the string which would be: 0ABCD hope this helps... > -----Original Message----- > From: sonjaya [mailto:sonjaya@che.itb.ac.id] > Sent: 19 June 2002 8:31 AM > To: php-general@lists.php.net > Subject: [PHP] parse text > > > i want read some tex like this > > here contens file text > > 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > 1. i want read from first left until eight caracter (12345678 <-- > caracter i cant read ) > it can be use fread > 2. i want read 5 from nine (9) caracter from left ( 0ABCD <--the > caracter must i read ) > so anybody can help me >

« previous php.general (#102903) next »