Jump to content

wildcard in aray?


blueman378

Recommended Posts

hi guys, well im modifying a file and it has this in it:

$projectsListIgnore = array ('.','..','images');

 

what im also wanting to do is have it so it excludes any that start with "Copy of" so for example i have

hello

Copy of hello

hello2 Copy of

images

another folder

 

at the moment i would get

hello

Copy of hello

hello2 Copy of

another folder

 

when what i acctually want is

hello

hello2 Copy of

another folder

 

get the idea?

 

cheers matt

 

Link to comment
https://forums.phpfreaks.com/topic/93960-wildcard-in-aray/
Share on other sites

well basically there is some code which lists some prjects, based upon some directorys, andway it reads from this array

$projectsListIgnore = array ('.','..','images');

and anything in that array is not printed basically, it works fine with static things

but i need it to also not print anything that Starts with Copy of (backup folders and dont want them showing up)

so im looking for something like

$projectsListIgnore = array ('.','..','images','Copy of *);

 

but obviously it doesnt work

Link to comment
https://forums.phpfreaks.com/topic/93960-wildcard-in-aray/#findComment-481412
Share on other sites

btw where did the topic solved mod go?

 

You know what, where did the site go itself? I keep trying to visit www.phpfreaks.com and it redirects me to the forums, weird things are going on with the updates. Topic Solved button was removed for the time being due to some update a while back. It should be back up soon, no worries :)

Link to comment
https://forums.phpfreaks.com/topic/93960-wildcard-in-aray/#findComment-481427
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.