RE: [PHP] first three characters

2001-03-18 Thread Jack Dempsey
?PHP $Word = "attention"; $Word_3 = substr("$Word",0,3); //$Word_3 is 'att' $Word_4 = substr("$Word",0,4); //Word_4 is 'atte' ? etc..you can use dynamic variables to extract the nth character from your word.. jack -Original Message- From: Rahul Hari Bhide [mailto:[EMAIL

RE: [PHP] first three characters

2001-03-18 Thread Ankur Verma
try using the function substr() $Word = attention $Word_3 = substr ($Word, 0,3) $Word_3 = substr ($Word, 0,4) and so on hope that helps regards Ankur Verma HCL technologies Noida India -Original Message- From: Rahul Hari Bhide [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001