Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Created September 14, 2009 16:04
Show Gist options
  • Save ericboehs/186745 to your computer and use it in GitHub Desktop.
Save ericboehs/186745 to your computer and use it in GitHub Desktop.
<?
$feed_stub = array('xml', 'feed', 'player', 'stats.xml');
foreach($feed_stub as $i => $f){
if($i == count($feed_stub)-1)
continue;
$feed_path .= "[$f]";
}
$test{$feed_path} = 'blah'; // Result: $test[[foo][bar]] => blah
//Desired result: $test[foo][bar] => blah
print_r($test);
die();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment