//ads: ?> How to access a var with "-" in PHP [duplicate]phpphp-5.4 PHP Snippet 1:$arrayOfObjects[$pos]->{'e-mail'}; PHP Snippet 2:$arrayOfObjects[$pos]['e-mail'];