Skip to content

Instantly share code, notes, and snippets.

@stealth35
Created June 18, 2012 15:48
Show Gist options
  • Save stealth35/2949028 to your computer and use it in GitHub Desktop.
Save stealth35/2949028 to your computer and use it in GitHub Desktop.
Alias weird
<?php
use DomDocument as Parser;
$p = new Parser();
var_dump(
method_exists($p, 'load'),
method_exists('Parser', 'load')
);
/*
bool(true)
bool(false)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment