Hi
I am a copy and paste coder, so missing a lot of basics.
I have a folder with a number of files eg
img-3-1-paint-city50
img-3-1-paint-city30
img-3-1-primer-city50
img-3-1-tape-city50
The code below sucessfully finds the first file (includes “paint” and “city50” and ignores all other files.
I know the code is checking if both “paint” and “city50” are true but the use of false is confusing me.
I want to change the code so that “paint” is not true but “city50” is true - so the following files will be returned:
img-3-1-primer-city50
img-3-1-tape-city50
What do I need to change so “paint” is false / not true
EDIT - jump to post 6 in this thread 31 December where I added my revised code and what I outcome I want. Thanks for the replies thus far.
if($file !== ‘.’ && $file !== ‘…’ && ( strpos($file,“paint”) !== false && strpos($file,“city50”) !== false ))