fork(1) download
  1. <?php
  2.  
  3. $html = '<span id="Number">12345678993</span>
  4.  
  5. <span id="holderName">RAFAELA VERCOSA MARIANO</span>
  6.  
  7. <span id="expirationDate">11/2019</span>';
  8.  
  9. $DOM = new DOMDocument;
  10. $DOM->loadHTML($html);
  11.  
  12. $number = $DOM->getElementById('Number')->nodeValue;
  13. $holdername = $DOM->getElementById('holderName')->nodeValue;
  14. $expirationdate = $DOM->getElementById('expirationDate')->nodeValue;
  15.  
  16. echo $number. PHP_EOL;
  17. echo $holdername. PHP_EOL;
  18. echo $expirationdate. PHP_EOL;
  19.  
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
12345678993
RAFAELA VERCOSA MARIANO
11/2019