I am a copy and paste coder, so missing a lot of basics.
I have a folder with a number of files eg
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:
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 ))