This seems like it should be easy, but nothing I've tried worked.
$glob = glob("{04-19-2017,04-20-2017,04-21-2017}/*.xml", GLOB_BRACE);
works perfectly.
But how I'm doing things is using a _GET
to dynamically produce a $date
variable.
I've tried...
$date = '04-19-2017,04-20-2017,04-21-2017';
// failed glob attempts
$glob = glob("{'.$date.'}/*.xml", GLOB_BRACE);
$glob = glob("{$date.}/*.xml", GLOB_BRACE);
$glob = 'glob("{' . $date . '}/*.xml"', GLOB_BRACE);
Like I said this should be super simple, but I'm running out of ideas :/
How do I get the variable in there?