RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Eugene Lee on Tuesday, September 30, 2003 2:12 PM said: > A heredoc is more readable: > > echo << value="{$chkSessionF[$i]}"> > HTMLTAG; Yeah, but I don't like those. :P chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] arrays and php

2003-09-30 Thread Eugene Lee
On Tue, Sep 30, 2003 at 09:10:44AM -0700, Chris W. Parker wrote: : : Angelo Zanetti : on Tuesday, September 30, 2003 5:43 AM said: : : > hi I have a table with rows and each row contains a checkbox ( array) : > and a record. TD of the checkbox: : > echo(" value=". $

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 02:32, Chris W. Parker wrote: > Jason Wong > > on Tuesday, September 30, 2003 11:27 AM said: > echo "".print_r($chk).""; > > It will not work. > > > > Actually, the above *does* work! > > Not for me. (Although we may be test

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Chris Shiflett on Tuesday, September 30, 2003 11:39 AM said: > The comma isn't concatenation; echo can take multiple arguments. Oh ok, I get it. > I've heard statements about passing multiple arguments to echo being > faster than using concatenation, but every benc

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > CPT John W. Holmes > on Tuesday, September 30, 2003 11:32 AM said: > > > Note that print_r() will (by default) return a 1 (TRUE) upon success, > > so you end up with a "1" being printed at the end of your data. > > [snip]

RE: [PHP] arrays and php

2003-09-30 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > What's the difference between using , or . for concatenation? (I > thought they were the same.) The comma isn't concatenation; echo can take multiple arguments. I've heard statements about passing multiple arguments to echo being faster than usin

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
CPT John W. Holmes on Tuesday, September 30, 2003 11:32 AM said: > Note that print_r() will (by default) return a 1 (TRUE) upon success, > so you end up with a "1" being printed at the end of your data. [snip] That answers it! c. -- PHP General Mailing List (h

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Jason Wong on Tuesday, September 30, 2003 11:27 AM said: echo "".print_r($chk).""; It will not work. > > Actually, the above *does* work! Not for me. (Although we may be testing different things.) ".print_r($pageTitle).""; ?> Gives me: Checkout S

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: "Jason Wong" <[EMAIL PROTECTED]> > On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: > > Jason Wong > > > > on Tuesday, September 30, 2003 11:06 AM said: > > >> echo "".print_r($chk).""; > > >> > > >> It will not work. > > Actually, the above *does* wo

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> >>> echo "".print_r($chk).""; >>> >>> It will not work. >> >> You can do this though: >> >> echo "", print_r($chk), ""; > >Well heck, that makes things easier! > >What's the difference between using , or . for concatenation? (I thought >they were the s

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: > Jason Wong > > on Tuesday, September 30, 2003 11:06 AM said: > >> echo "".print_r($chk).""; > >> > >> It will not work. Actually, the above *does* work! -- Jason Wong -> Gremlins Associates -> www.gremlin

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Jason Wong on Tuesday, September 30, 2003 11:06 AM said: >> echo "".print_r($chk).""; >> >> It will not work. > > You can do this though: > > echo "", print_r($chk), ""; Well heck, that makes things easier! What's the difference between using , or . for concat

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 00:10, Chris W. Parker wrote: [snip] > If you're not sure what a value is use print_r() to determine it. > > echo ""; > print_r($chk); > echo ""; > > Quick side note on the above code: > > You cannot write it like: > > echo "".print_r($chk).""; > > It will not work.

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Angelo Zanetti on Tuesday, September 30, 2003 5:43 AM said: > hi I have a table with rows and each row contains a checkbox ( array) > and a record. TD of the checkbox: > echo(" value=". $chkSessionF[$i] .">"); Firstly you should be putting double quotes around every