Skip to content

Instantly share code, notes, and snippets.

@gavinanderegg
Created June 16, 2011 21:59
Show Gist options
  • Save gavinanderegg/1030400 to your computer and use it in GitHub Desktop.
Save gavinanderegg/1030400 to your computer and use it in GitHub Desktop.
Static class vars
<?php
class Foo
{
public static $my_static = 'foo';
}
print Foo::$my_static . "\n";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment