On Mar 12, 2013, at 5:16 PM, David Robley wrote:
> Presumably there is a fixed list of State - those are US states? -
> so why not provide a drop down list of the possible choices?
There is, but the problem must have been that if someone didn't select
a State, $state was blank. I've sin
Angela Barone wrote:
> I think I figured it out.
>
> $states = array(
> 'AL' => array( '350','351','352','353', ),
> 'AK' => array( '995','996','997','998','999', ),
> 'AZ' => array( '850','851','852','853','854', ),
> 'WI' => array( '530','531','532', ),
> 'WY' => array( '82
I think I figured it out.
array( '350','351','352','353', ),
'AK' => array( '995','996','997','998','999', ),
'AZ' => array( '850','851','852','853','854', ),
'WI' => array( '530','531','532', ),
'WY' => array( '820','821','822','823','824', ),
);
$zip = 35261;
$state =
$states = array(
'AL' => array( '350','351','352','353', ),
'AK' => array( '995','996','997','998','999', ),
'AZ' => array( '850','851','852','853','854', ),
...
'WI' => array( '530','531','532', ),
'WY' => array( '820','821','822','823','824', ),
);
?>
Seei
On Mar 12, 2013, at 2:26 PM, Marco Behnke wrote:
> what is in $states?
> Looks like $states[$state] is not an array.
Here's a sample:
array( '350','351','352','353', ),
'AK' => array( '995','996','997','998','999', ),
'AZ' => array( '850','851','852','853','854', ),
...
Am 12.03.13 20:45, schrieb Angela Barone:
> I've been getting the following error for awhile now, but I can't
> figure out why it's happening:
>
> Invalid argument supplied for foreach() in ... sample.php on line 377
>
> Here's that portion of code:
>
> include("states_zipcodes.php");
Bastien Koert
On 2013-03-11, at 10:50 PM, Karl DeSaulniers wrote:
>
> On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote:
>
>> On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers
>> wrote:
>>>
>>> On Mar 10, 2013, at 6:03 AM, richard gray wrote:
>>>
On 10/03/2013 11:47, Karl DeSaulniers
On 3/12/2013 3:45 PM, Angela Barone wrote:
$zip_short = substr($zip, 0, 3);
foreach ($states[$state] as &$zip_prefix) { // <-- line 377
if ($zip_prefix == $zip_short) {
break;
} else {
$match = 'no';
}
}
I see the & in the foreach. Since you are not modifying
I've been getting the following error for awhile now, but I can't
figure out why it's happening:
Invalid argument supplied for foreach() in ... sample.php on line 377
Here's that portion of code:
include("states_zipcodes.php");
// Check if Zip Code matches from states_zipcodes
On 12 March 2013 14:01, Tomasz Sawicki wrote:
>> It would seem that without tokenising the class file, I'm sort of
>> stuck with the solution I've got at the moment.
>>
>> Unless anyone has any ideas!
>
>
> I faced similar problem with constants when doing WSDL generator. In my case
> I wanted to
> Norah Jones hat am 12. März 2013 um 15:18 geschrieben:
>
> I am using the sublime text 2 plugin for PHP Coding Standards Fixer. It is
> working fine, except for the fact that it considers the namespace invalid (it
> is in fact invalid and I'm okay with it). this errors halts the script from
> co
I am using the sublime text 2 plugin for PHP Coding Standards Fixer. It is
working fine, except for the fact that it considers the namespace invalid (it
is in fact invalid and I'm okay with it). this errors halts the script from
correcting the rest of the file. I get the following error:
T
It would seem that without tokenising the class file, I'm sort of
stuck with the solution I've got at the moment.
Unless anyone has any ideas!
I faced similar problem with constants when doing WSDL generator. In my
case I wanted to extract constant description to include it in WSDL
documentat
On 03/12/2013 01:45 PM, Camilo Sperberg wrote:
Begin forwarded message:
From: Camilo Sperberg
Subject: Re: [PHP] Where do I report bugs/feature requests for Image magick ext
Date: March 12, 2013 1:40:09 PM GMT+01:00
To: Carsten Jensen
On Mar 12, 2013, at 1:13 PM, Carsten Jensen wrote:
As
> -Original Message-
> From: Arno Kuhl [mailto:a...@dotcontent.net]
> Sent: 12 March 2013 13:04
>
> Mike, I presume you're saying the precedence of the Boolean keyword
> operators is lower than the Boolean symbol operators, but if so then
> wouldn't there be less need for the parentheses?
-Original Message-
From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk]
Sent: 12 March 2013 10:51 AM
To: PHP General
Subject: RE: [PHP] Re: UNLESS Statement Equivalent
> unless ( $a and $b )
> =
> if ( ! ($a and $b) )
>
> So in simple terms, just stick a ! (or the keyword not) in front of
> y
-Original Message-
From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk]
Sent: 12 March 2013 10:51 AM
To: PHP General
Subject: RE: [PHP] Re: UNLESS Statement Equivalent
> unless ( $a and $b )
> =
> if ( ! ($a and $b) )
>
> So in simple terms, just stick a ! (or the keyword not) in front of
>
Begin forwarded message:
> From: Camilo Sperberg
> Subject: Re: [PHP] Where do I report bugs/feature requests for Image magick
> ext
> Date: March 12, 2013 1:40:09 PM GMT+01:00
> To: Carsten Jensen
>
>
> On Mar 12, 2013, at 1:13 PM, Carsten Jensen wrote:
>
>> As subject says, I'm having som
As subject says, I'm having some trouble finding out where to report
bugs/feature requests for the Image magick extension.
Anyone would be so kind to point me in the right direction please?
cheers
Carsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
2013/3/12 Ford, Mike
> > -Original Message-
> > From: Maciek Sokolewicz [mailto:tula...@gmail.com] On Behalf Of
> > Maciek Sokolewicz
> > Sent: 11 March 2013 22:44
> >
>
> > unless ( $a and $b )
> > =
> > if ( ! ($a and $b) )
> >
> > So in simple terms, just stick a ! (or the keyword not)
> Gary hat am 11. März 2013 um 15:51
> geschrieben:
> > I and others have pointed you towards open source solutions, the fact
> > you don't want to put any effort in to make them work for you is not
> > because of the state of open source software.
>
> If you think that "solutions" are things wh
> -Original Message-
> From: Maciek Sokolewicz [mailto:tula...@gmail.com] On Behalf Of
> Maciek Sokolewicz
> Sent: 11 March 2013 22:44
>
> unless ( $a and $b )
> =
> if ( ! ($a and $b) )
>
> So in simple terms, just stick a ! (or the keyword not) in front of
> your
> expression, and you'
22 matches
Mail list logo