PATH:
opt
/
alt
/
tests
/
alt-php80-pecl-gender_1.1.0-3.el8
/
tests
<?php namespace Gender; function eval_result($result, $name , $country = 0) { switch($result) { case Gender::IS_FEMALE: printf("The name %s is female in %s\n", $name, $country); break; case Gender::IS_MOSTLY_FEMALE: printf("The name %s is mostly female in %s\n", $name, $country); break; case Gender::IS_MALE: printf("The name %s is male in %s\n", $name, $country); break; case Gender::IS_MOSTLY_MALE: printf("The name %s is mostly male in %s\n", $name, $country); break; case Gender::IS_UNISEX_NAME: printf("The name %s is unisex in %s\n", $name, $country); break; case Gender::IS_A_COUPLE: printf("The name %s is both male and female in %s\n", $name, $country); break; case Gender::NAME_NOT_FOUND: printf("The name %s was not found for %s\n", $name, $country); break; case Gender::ERROR_IN_NAME: echo "There is an error in the given name!\n"; break; default: echo "An error occured!\n"; break; } }
[-] 003.phpt
[edit]
[-] 001.phpt
[edit]
[-] 006.phpt
[edit]
[-] 009.phpt.php-8.4-compatibility
[edit]
[-] 007.phpt
[edit]
[-] 010.phpt
[edit]
[-] 004.phpt
[edit]
[-] func.inc
[edit]
[-] 010.phpt.php-8.4-compatibility
[edit]
[+]
..
[-] 002.phpt
[edit]
[-] 009.phpt
[edit]
[-] 011.phpt.php-8.4-compatibility
[edit]
[-] 005.phpt
[edit]
[-] 008.phpt
[edit]
[-] 011.phpt
[edit]