Skip to content

Instantly share code, notes, and snippets.

@MightyPork
Created May 14, 2016 10:18
Show Gist options
  • Select an option

  • Save MightyPork/7fcf997c6e50a6fad048eceb3eea71b8 to your computer and use it in GitHub Desktop.

Select an option

Save MightyPork/7fcf997c6e50a6fad048eceb3eea71b8 to your computer and use it in GitHub Desktop.
<?php
class Lolwut {
const string = "I'm string";
const const = "I'm const";
const public = "I'm public";
const use = "I'm use";
const if = "I'm if";
//const class = "Class"; // this fails:
}
echo Lolwut::string . PHP_EOL;
echo Lolwut::const . PHP_EOL;
echo Lolwut::public . PHP_EOL;
echo Lolwut::use . PHP_EOL;
echo Lolwut::if . PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment