ulvis.paste.net

Paste Search Dynamic
Recent pastes
json encode
  1. <?php
  2.  
  3. $string ="Charged 250 Fcfa for ISDN 237664859177 on 13/09/2018 13:07:07. Your balance is 750 Fcfa. Transaction code 761202363";
  4. $date = date("d\/m\/Y");
  5. echo $date."\n";
  6. $yesterday = strtotime("-1 day");
  7. $date = date('d\/m\/Y',$yesterday);
  8. echo $date."\n";
  9. preg_match_all('#(250|664859177{1}|Charged|'.$date.')#',$string, $matches);
  10.  
  11. echo json_encode($matches[0]);
  12. ?>
Parsed in 0.015 seconds