substr()
http://www.php.net/manual/en/function.substr.php
Kirk
> -Original Message-
> From: Rahul Bhide [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 18, 2001 11:02 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] first three characters
>
>
> Gurus,
> How do I extract the first n ch
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 1
etc..you can use dynamic variables to extract the nth character from
your word..
jack
-Original Message-
From: Rahul Hari Bhide [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 1:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] first three characters
Gurus,
How do I extr
3 matches
Mail list logo