Surely the obvious solution is:

((($w[1]-2)%3+($w[1]-1)%3)>1)

=P

On Jan 16, 4:53 pm, Michael <[email protected]> wrote:
> On Fri, 16 Jan 2009 16:47:01 Mike Cochrane wrote:
>
> > Or slightly easier to read assuming $substr was supposed to just be substr:
>
> > (in_array($w[1], array(3, 4, 6, 7, 9))
>
> > - Mike
>
> Yes. It was a typo, but even with that fixed my original code did not work as
> I had wanted.
>
> It is now working good with the assistance from yourself and others,
> thanks :-)
>
> Michael
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to