PHP (Legacy)

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4067600106351792","path":"main.php","file":{"path":"main.php","content":{"asEncoding":{"base64":"ZnVuY3Rpb24gZmluZEdlbmRlcigkbmFtZSkgewogICRhcGlLZXkgPSAnJzsgLy9Zb3VyIEFQSSBLZXkKICAkZGF0YSA9IGpzb25fZGVjb2RlKGZpbGVfZ2V0X2NvbnRlbnRzKCdodHRwczovL2dlbmRlcmFwaS5pby9hcGk/a2V5PScgLiAkYXBpS2V5IC4gJyZuYW1lPScgLiB1cmxlbmNvZGUoJG5hbWUpKSk7CiAgcmV0dXJuICRkYXRhLT5nZW5kZXI7Cn0KZWNobyBmaW5kR2VuZGVyKCdhbmdlbGEnKTs="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
function findGender($name) {
  $apiKey = ''; //Your API Key
  $data = json_decode(file_get_contents('https://genderapi.io/api?key=' . $apiKey . '&name=' . urlencode($name)));
  return $data->gender;
}
echo findGender('angela');
PHP 7.0.8 (Legacy: use the following for new features: Command-line PHP: https://repl.it/languages/php_cli PHP Web Server: https://repl.it/languages/php7