Skip to content

Instantly share code, notes, and snippets.

@nfabre
Created October 27, 2010 13:03
Show Gist options
  • Save nfabre/648979 to your computer and use it in GitHub Desktop.
Save nfabre/648979 to your computer and use it in GitHub Desktop.
<?php
class Exemple {}
$object = new Exemple();
$object->attribut1 = 1;
$object->attribut2 = 2;
$object->attributX = 'x';
var_dump($object);
// Affiche
object(Exemple)#1 (3) {
["attribut1"] => int(1)
["attribut2"] => int(2)
["attributX"] => string(1) "x"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment