fork(4) download
  1. <?php
  2.  
  3. $str = 'joão silva!';
  4. echo ucwords( $str );
  5.  
  6. $str = 'joão silva';
  7. echo mb_convert_case( $str , MB_CASE_TITLE , 'UTF-8' );
  8.  
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
João Silva!João Silva