我使用此代码选择所有客户详细信息
function getCustomers() {
    /* Magento's Mage.php path
     * Mage Enabler users may skip these lines
     */
    require_once ("../mysite/app/Mage.php");
    umask(0);
    Mage::app("default");
    /* Magento's Mage.php path */
    /* Get customer model, run a query */
    $collection = Mage::getModel('customer/customer')
                  ->getCollection()
                  ->addAttributeToSelect('*');
    $result = array();
    foreach ($collection as $customer) {
        $result[] = $customer->toArray();
    }
    return $result;
}   
但我也想检查一个字段值......
那就是在 eav_attribute 表中有一个列'usertypecurrent'.....
我需要检查它的值为0。
这意味着选择其用户类型为 0 的所有客户...
我怎样才能做到这一点?