fork(3) download
  1. <?php
  2. $palavras = explode(' ', 'José da Silva');
  3. echo $palavras[count($palavras) - 1];
  4.  
  5. $texto = ' José da Silva ';
  6. $texto = trim($texto);
  7. echo substr($texto, strrpos($texto, ' ') + 1);
  8.  
  9. //https://pt.stackoverflow.com/q/320784/101
Success #stdin #stdout 0.03s 23756KB
stdin
Standard input is empty
stdout
SilvaSilva