• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

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'];

Related Snippets

Error Class "LaravelFortifyFeatures" not found

Extract string between first whitespace and last whitespace in php

AJAX call fails with SyntaxError: Unexpected end of JSON input

How to install LDAP in Docker php-fpm alpine

Center point of multiple gps coordinates with php

Artisan, creating tables in database

Warning: A non-numeric value encountered

How can I get data from PHP to Android TextView?

Getting output of MS stored procedure on php call

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Post Form Data To phpmyadmin Database

How should I get started using PHPUnit as a testing framework for a bunch of functions and classes I have already made?

TesseractOCR not working for Laravel

Laravel 5.1 how to use {{ old('') }} helper on blade file for radio inputs

How to override htaccees file for cache control header

About Contact Privacy policy Terms and conditions