Paste Search Dynamic
Recent pastes
FILTER VALIDATE DOMAIN
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. var_dump(filter_var("0", FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  6. var_dump(filter_var('test', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  7. var_dump(filter_var('test test', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  8. var_dump(filter_var('@', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  9. var_dump(filter_var('🐲', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  10. var_dump(filter_var('-', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  11. var_dump(filter_var('-a', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  12. var_dump(filter_var('a-', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  13. var_dump(filter_var('a-b', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  14. var_dump(filter_var('', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  15. var_dump(filter_var('7', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  16. var_dump(filter_var('7a', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  17. var_dump(filter_var('123456789-123456789-123456789-123456789-123456789-123456789-', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  18. var_dump(filter_var('123456789-123456789-123456789-123456789-123456789-123456789-123456789-', FILTER_VALIDATE_DOMAIN,FILTER_FLAG_HOSTNAME));
  19.  
  20. ?>
Parsed in 0.028 seconds