function unicidad_datos() { // todo tu codigo // al final: return $existe_usuario;}$existe = unicidad_datos();