Skip to content

Instantly share code, notes, and snippets.

@vojtasvoboda
Created September 16, 2014 11:23
Show Gist options
  • Save vojtasvoboda/b349fb500f31d930e4d3 to your computer and use it in GitHub Desktop.
Save vojtasvoboda/b349fb500f31d930e4d3 to your computer and use it in GitHub Desktop.
PHP Masking
<?php
/**#@+ Timeline {@link Twitter::load()} */
const ME = 1;
const ME_AND_FRIENDS = 2;
const REPLIES = 3;
const ALL = 4;
/**#@-*/
/**#@+ Output format {@link Twitter::load()} */
const XML = 0;
const JSON = 16;
const RSS = 32;
const ATOM = 48;
/**#@-*/
$flags = REPLIES + ATOM;
$timeln = $flags & 0x0F;
$format = $flags & 0xF0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment