Re: [PHP] Fw: Am stuck

2003-09-27 Thread Becoming Digital
http://www.php.net/manual/en/function.str-pad.php Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Chris Grigor" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Thursday, 25 September, 2003 09:17 Subject: [PH

Re: [PHP] Fw: Am stuck

2003-09-25 Thread andu
On Thu, 25 Sep 2003 15:17:26 +0200 "Chris Grigor" <[EMAIL PROTECTED]> wrote: > Sorry maybe I should elaborate > > > > $name = "Chris"; > > $b = '5'; /* this is the value count of $name; */ > > for ($a=$b; $a<=40; $a++) > { > add a space to the end of $name; /* this then makes $name 4

[PHP] Fw: Am stuck

2003-09-25 Thread Chris Grigor
Sorry maybe I should elaborate 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 t