public static function getCSSClassname($size, $value, $suffix, $min = 1, $max = 12) {

        if ($value < $min || $max < $value) {
            return null;
        }

        $sizes    = ["lg", "md", "sm", "xs"];
        $suffixes = ["offset", "pull", "push", ""];

        if (false === in_array($size, $sizes) || false === in_array($suffix, $suffixes)) {
            return null;
        }
        if ("" !== $suffix) {
            $suffix .= "-";
        }

        return implode("-", ["col", $size, $suffix . $value]);
    }
public static function getCSSClassname($size, $value, $suffix, $min = 1, $max = 12) {

        if ($value < $min || $max < $value) {
            return null;
        }

        $sizes    = ["lg", "md", "sm", "xs"];
        $suffixes = ["offset", "pull", "push", ""];

        if (false === in_array($size, $sizes) || false === in_array($suffix, $suffixes)) {
            return null;
        }
        if ("" !== $suffix) {
            $suffix .= "-";
        }

        return implode("-", ["col", $size, $suffix . $value]);
    }
public static function getCSSClassname ( $ size , $ value , $ suffix , $ min = 1 , $ max = 12 ) { if ( $ value < $ min || $ max < $ value ) { return null ; } $ sizes = [ "lg" , "md" , "sm" , "xs" ] ; $ suffixes = [ "offset" , "pull" , "push" , "" ] ; if ( false === in_array ( $ size , $ sizes ) || false === in_array ( $ suffix , $ suffixes ) ) { return null ; } if ( "" !== $ suffix ) { $ suffix .= "-" ; } return implode ( "-" , [ "col" , $ size , $ suffix . $ value ] ) ; }
Get a CSS classname.

@param string $size The size.
@param int $value The value.
@param string $suffix The suffix.
@param int $min The min value.
@param int $max The max value.
@return string|null Returns the CSS classname.
Get a CSS classname .