private function putSpace(string $str, int $max):string
    {
        $i = 0;
        $len = strlen($str);
        $max -= $len;
        $space = "";
        while ($i <= $max) {
            $space .= " ";
            $i++;
        }
        return ($space);
    }
private function putSpace(string $str, int $max):string
    {
        $i = 0;
        $len = strlen($str);
        $max -= $len;
        $space = "";
        while ($i <= $max) {
            $space .= " ";
            $i++;
        }
        return ($space);
    }
private function putSpace ( string $ str , int $ max ) : string { $ i = 0 ; $ len = strlen ( $ str ) ; $ max -= $ len ; $ space = "" ; while ( $ i <= $ max ) { $ space .= " " ; $ i ++ ; } return ( $ space ) ; }
Calc how many space can be contain a string to align them
@param string $str String element
@param int $max Max space
@return string The required spaces
Calc how many space can be contain a string to align them