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) { Quote 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){ Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.