como verificar se allow_url_fopen está habilitado ou não [duplicado]

Esta questão já tem uma resposta aqui:

Escrevendo uma função no php 6 respostas

Estou usando o seguinte código

echo 'file_get_contents : ', ini_get('allow_url_fopen') ? 'Enabled' : 'Disabled';

isso pode ativá-lo ou desativá-lo

mas eu gostaria de fazer como função dizer nome da função é_isgetcontents

então eu posso chamá-lo como seguindo qualquer lugar no meu código do site

if (_isgetcontents()){
echo "this is enabled"; // will do an action
}else{
echo "this is disabled"; // will do another action
}

~ obrigado

questionAnswers(2)

yourAnswerToTheQuestion