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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.