All pastes #931179 Raw Edit

Anonymous

public php v1 · immutable
·published 2008-03-07 00:31 UTC
rendered paste body
    public function is_natural($val, $acceptzero = false)    {        $return = ((string)$val === (string)(int)$val);        if ($acceptzero)            $base = 0;        else            $base = 1;        if ($return && intval($val) < $base)            $return = false;        return $return;    }