View Single Post
Old 03-04-2006, 07:02 PM  
bDok
Confirmed User
 
bDok's Avatar
 
Join Date: Feb 2005
Location: SD/OC/LA
Posts: 1,917
Quote:
Originally Posted by ThunderBalls
What would be the proper syntax for this line if I want it to return 1 if anything in the $imageFilename contains .jpg? I know eq isnt right.

if ($imageFilename eq .jpg) { return 1; }
you are going to need to write a regular expression to check for the .jpg in the filename.

__________________
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Warriors come out to plaAAaayyy!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
bDok is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote