Skip to content

Instantly share code, notes, and snippets.

View andizer's full-sized avatar
👋

Andy andizer

👋
View GitHub Profile
@andizer
andizer / ClassForward.php
Last active May 26, 2020 08:40
This example forwards class functionality to the given class
<?php
class Bla {
private static $TargetClass = 'Foo';
public function __callStatic($Method, $Args = array()) {
self::CallMethod($Method, $Args);
}
@andizer
andizer / FB locales compare
Last active August 29, 2015 14:16
Compare a list of locales with the actual xml file on facebook to check for new additions.
<?php
// This list is not actual, because it's shortened
$fb_valid_fb_locales = array(
'ca_ES',
'cs_CZ',
'cy_GB',
'da_DK',
'de_DE',
'eu_ES',
'en_PI',