Re: [PHP] Am stuck

2003-09-25 Thread Chris Sherwood
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

Re: [PHP] Am stuck

2003-09-25 Thread Raquel Rice
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.

RE: [PHP] Am stuck

2003-09-25 Thread chris . neale
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

[PHP] Am stuck

2003-09-25 Thread Chris Grigor
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. Then before writing it to the output file I know that it has to be 40 charecters long before it g