...sorry, that should have been if (in_array(array(1,2,3,4), 6)) On Thu, 2004-09-30 at 22:10, Daevid Vincent wrote:
> I'm sure I'll be flamed for this, but it seems to me that there should be a > shortcut way to write: > > If ($a == 1 || $a == 4 || $a == 20 || ...) {} > > To something more like what SQL has... > > If ( $a IN(1,4,20,...) ) {} > > And same with the very helpful SQL BETWEEN 'function'. > > Instead of > > If ($a > 1 && $a < 20) {} > > Why not > > If ($a BETWEEN (1,20)) {} -- c3f7bc9d7683857572da3d1fa3d31af17bde4ebbc5c0f0dc2b7f6f