X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php81-pecl-gender_1.1.0-3.el8/tests
opt
/
alt
/
tests
/
alt-php81-pecl-gender_1.1.0-3.el8
/
tests
/
??
..
??
001.phpt
(541 B)
??
002.phpt
(300 B)
??
003.phpt
(303 B)
??
004.phpt
(796 B)
??
005.phpt
(298 B)
??
006.phpt
(612 B)
??
007.phpt
(1 KB)
??
008.phpt
(500 B)
??
009.phpt
(379 B)
??
009.phpt.php-8.4-compatibility
(379 B)
??
010.phpt
(508 B)
??
010.phpt.php-8.4-compatibility
(508 B)
??
011.phpt
(1.66 KB)
??
011.phpt.php-8.4-compatibility
(1.66 KB)
??
func.inc
(1000 B)
Editing: func.inc
<?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; } }
Upload File
Create Folder