Why dont you trim the string first to ensure that there are no empty spaces
at the end and beginning of it
http://ca3.php.net/manual/en/function.trim.php
and then do your count.
Chris
<-- SNIP -->
Good day all
I have a txt file that has values from various strings written to it.
What Im lookin
On Thu, 25 Sep 2003 15:09:31 +0200
"Chris Grigor" <[EMAIL PROTECTED]> wrote:
> Good day all
>
> I have a txt file that has values from various strings written to
> it.
>
> What Im looking for is the following
>
> $name = "Chris';
>
> I need to do a count on $name so that it returns 5 letters.
Try Str_len and str_pad
Regards
Chris
-Original Message-
From: Chris Grigor [mailto:[EMAIL PROTECTED]
Sent: 25 September 2003 13:10
To: php
Subject: [PHP] Am stuck
Good day all
I have a txt file that has values from various strings written to it.
What Im looking for is the following
3 matches
Mail list logo