fork(1) download
  1. <?php
  2.  
  3. $register_msg = ['ihc_error_please_write_yourname_in_english' => 'English, please!', 'ihc_error_no_vowels_found' => 'No vowels!' ];
  4. $value = 'سبعة';
  5.  
  6. $return = "";
  7. if (preg_match('/^[\x{0600}-\x{06FF}]*$/u', $value)){
  8. $return .= $register_msg['ihc_error_please_write_yourname_in_english'] . PHP_EOL;
  9. }
  10. if (!preg_match('~[eyuioa]~',$value)) {
  11. $return .= $register_msg['ihc_error_no_vowels_found'] . PHP_EOL;
  12. }
  13.  
  14. echo $return;
  15.  
Success #stdin #stdout 0.02s 23820KB
stdin
Standard input is empty
stdout
English, please!
No vowels!