Re: [PHP] str_pad with  

2004-10-31 Thread Greg Donald
On Sun, 31 Oct 2004 16:13:44 -0600, Jonel Rienton <[EMAIL PROTECTED]> wrote: > i was trying to do an str_pad with   (space) but somehow it's just > putting in one space and &nbs > > sample code: > > > > anybody else experienced this? " " is 6 characters. It may only appear as one character wh

[PHP] str_pad with  

2004-10-31 Thread Jonel Rienton
Hi guys, i was trying to do an str_pad with   (space) but somehow it's just putting in one space and &nbs sample code: anybody else experienced this? thanks and regards, jonel -- I not know English well, but I know 7 computer languages. -anonymous -- PHP General Mailing List (http://www.php.net/

RE: [PHP] str_pad

2003-09-26 Thread Jeff McKeon
Thanks all! This is definitely one of the most helpfull mailing lists I belong to. Jeff > -Original Message- > From: Nitin [mailto:[EMAIL PROTECTED] > Sent: Friday, September 26, 2003 11:26 AM > To: Jeff McKeon; php > Subject: Re: [PHP] str_pad > > > It gives

Re: [PHP] str_pad

2003-09-26 Thread Nitin
PROTECTED]>; "Chris Grigor" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]> Sent: Friday, September 26, 2003 8:30 PM Subject: RE: [PHP] str_pad > Just learning PHP and figuring out all the syntax and stuff. Anyway I > had a question about the code example in t

RE: [PHP] str_pad

2003-09-26 Thread Robert Cummings
On Fri, 2003-09-26 at 11:18, Robert Cummings wrote: > On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote: > > Just learning PHP and figuring out all the syntax and stuff. Anyway I > > had a question about the code example in this post... > > > > What does the "->" do in: > > > > $dbranch = str_pad($

Re: [PHP] str_pad

2003-09-26 Thread Marek Kilimajer
nch = str_pad($line->dbranch_no, 6, '', STR_PAD_LEFT); Is dbranch_no a "class" I don't know about? Thanks, Jeff -Original Message- From: Nitin [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 8:05 AM To: Chris Grigor; php Subject: Re: [PHP] str_pad

RE: [PHP] str_pad

2003-09-26 Thread Robert Cummings
On Fri, 2003-09-26 at 11:00, Jeff McKeon wrote: > Just learning PHP and figuring out all the syntax and stuff. Anyway I > had a question about the code example in this post... > > What does the "->" do in: > > $dbranch = str_pad($line->dbranch_no, 6, '', STR_PAD_LEFT); > > Is dbranch_no a "clas

RE: [PHP] str_pad

2003-09-26 Thread Jeff McKeon
about? Thanks, Jeff > -Original Message- > From: Nitin [mailto:[EMAIL PROTECTED] > Sent: Friday, September 26, 2003 8:05 AM > To: Chris Grigor; php > Subject: Re: [PHP] str_pad > > > of course, you can specify the optional argument STR_PAD_LEFT like: > >

Re: [PHP] str_pad

2003-09-26 Thread Nitin
t: Friday, September 26, 2003 4:49 PM Subject: [PHP] str_pad This should be quite an easy task for some... say for example $line->dbranch has a value of 3 I know that 3 spaces will be added on to the end of $dbranch $dbranch = str_pad($line->dbranch_no, 6); so the value of $dbranch should l

[PHP] str_pad

2003-09-26 Thread Chris Grigor
This should be quite an easy task for some... say for example $line->dbranch has a value of 3 I know that 3 spaces will be added on to the end of $dbranch $dbranch = str_pad($line->dbranch_no, 6); so the value of $dbranch should look like "3 " Is there anyway to right justify the 3 using