refiking Posted November 10, 2009 Share Posted November 10, 2009 I want to make it check to see if the filename is gif or jpg. Not just gif. This is what I have so far: $pos = strpos($file_name, '.gif'); $pos2 = strpos($file_name, '.jpg'); if ($pos !== false) { Link to comment https://forums.phpfreaks.com/topic/180939-solved-how-to-write-2-options-for-an-if-statement/ Share on other sites More sharing options...
mikesta707 Posted November 10, 2009 Share Posted November 10, 2009 if ($pos !== false || $pos2 !== false){ Link to comment https://forums.phpfreaks.com/topic/180939-solved-how-to-write-2-options-for-an-if-statement/#findComment-954569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.