fork download
  1. <?php
  2.  
  3. $numeros = '142-22';
  4. $final = strstr($numeros,'-',true);
  5.  
  6. echo $final;
Success #stdin #stdout 0.02s 23828KB
stdin
Standard input is empty
stdout
142