Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php
  2. require('MulticraftAPI.php');
  3. $api = new MulticraftAPI('http://play.flanvival.com/multicraft/api.php', 'admin', 'no');
  4. $subject = ($api-> getServerLog(1));
  5. $pattern = '/([0-9]{4}-[0-9]{4})/';
  6. $matches = preg_grep($pattern, $subject);
  7. print_r ($matches);
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement