Re: Need someone with a fresh mind on tacking thisarrayproblem...

From: Date: Wed, 18 Jun 2003 18:45:27 +0000
Subject: Re: Need someone with a fresh mind on tacking thisarrayproblem...
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-152044@lists.php.net to get a copy of this message
Bingo!! I did some PHP re-arrangement and I also do what you were saying about taking out the quote. It doesn't work with the quote inside and it work without the quote. What so interesting is that the year is actually a string so I figured that putting it in a sting will work, but I guess not... Thanks, Scott P.S. Here's the clipping... --clip-- $ODBC_RESULT = trim(odbc_result($result,2)); $ArrayCheck = $ArrayDataCount[$ODBC_RESULT]; $ArrayCheck += 0; if ($ArrayCheck == 0) { echo " jsTimeRange[".$ODBC_RESULT."] = new Array(new Array(),new Array());\n"; } $ArrayCheck++; $ArrayDataCount[$ODBC_RESULT] = $ArrayCheck; --clip-- "Scott Fletcher" <scott@abcoa.com> wrote in message news:20030618182745.47645.qmail@pb1.pair.com... > Well, I don't remember exactly where was it mentioned. It involve the > array, $_SESSION, $_REQUEST, etc. where there is a double bracket is being > mentioned. :-) > > Thanks, > Scott > > P.S. still working on php script. sigh! > > "Lars Torben Wilson" <torben@php.net> wrote in message > news:1055960211.1059.135.camel@ali... > > On Wed, 2003-06-18 at 11:11, Scott Fletcher wrote: > > > Well, the PHP Manual said we should be using the quote (single or > double) > > > inside the array no matter what, it also reduce the side-effect problem. > > > It's what I read at php.net in the past. > > > > That's referring to string literals, but that might not be all that > > obvious. I've been fixing the array type page today, so I'll take > > a look at the wording on this. > > > > > > -- > > Torben Wilson <torben@php.net> +1.604.709.0506 > > http://www.thebuttlesschaps.com > > http://www.inflatableeye.com > > http://www.hybrid17.com > > http://www.themainonmain.com > > -----==== Boycott Starbucks! > > http://www.haidabuckscafe.com ====----- > > > > > > > >

« previous php.general (#152044) next »