PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php enum Contexts: string { case APP_TRIALLED = 'APP_TRIAL'; case APP_FULL = 'APP_FULL'; case APP_FREE = 'APP_FREE'; case APP_SPAIN = 'APP_SPAIN'; case SYMBOLS_WEB = 'SYMBOLS_WEB'; case ZIP_DOWNLOAD = 'ZIP_DOWNLOAD'; } $contexts = [ Contexts::APP_FULL, Contexts::APP_FREE ]; $serialised = serialize($contexts); $unserialised = unserialize($serialised); var_export($contexts); var_export($serialised); var_export($unserialised);
Show:  
Copy Clear