fork(4) download
  1. <?php
  2.  
  3. $string = "adsfasdfasd.234.asdfa.3rfr.jpg";
  4. echo pathinfo($string, PATHINFO_EXTENSION);
Success #stdin #stdout 0.02s 24472KB
stdin
Standard input is empty
stdout
jpg