Or slightly easier to read assuming $substr was supposed to just be substr:
(in_array($w[1], array(3, 4, 6, 7, 9)) - Mike On 16/01/2009 13:23, Matias Gertel wrote: > What about: > > (in_array($substr($w,1,1),array(3,4,6,7,9))) > > > [ Now playing: "Bandolera" by /Alonso Brito/ from "" ] > > On 16/01/2009, at 1:18 PM, Michael wrote: > > > ($substr($w,1,1) == 3 || 4 || 6 || 7 || 9) > > This piece of code is not working - is there a way to achieve this? > > > > > > > -- Mike Cochrane Web Team Leader gardyneHOLT - design partners 18 Beresford Square Newton PO Box 3340 Auckland New Zealand p +64 9 300 3155 f +64 9 302 3349 m 021 545 565 skype gardyneholt_mikec www.gardyneholt.co.nz DISCLAIMER: This electronic message, together with any attachments, was created solely for the use of the intended recipient(s), and may be confidential. Views expressed may be those of the individual sender and are not necessarily endorsed by gardyneHOLT. If you are not the intended recipient, please advise us by return e-mail that you have received the message in error and then delete it. Do not copy, disclose or use the contents in any way. --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
