|
Posted by Rami Elomaa on 05/16/07 08:52
"UKuser" <spidercc21@yahoo.co.uk> wrote in message
news:1179305059.030405.170200@q23g2000hsg.googlegroups.com...
> Hi,
>
> Is there a way to shorten this line
>
> if ((ereg(".jpg",$filename))||(ereg(".eps",$filename))||(ereg(".tif",
> $filename))||(ereg(".tiff",$filename))||(ereg(".jpeg",$filename))||
> (ereg(".ai",$filename))) {
if(preg_match('#.+\.(jpg|jpeg|eps|tif|tiff|ai)$#', $filename)){
--
Rami.Elomaa@gmail.com
"Good tea. Nice house." -- Worf
[Back to original message]
|