public static function fillPlaceholders(string $msg, array $values)
    {
        foreach ($values as $key => $value)
            $msg = str_replace('{' . $key . '}', self::str($value), $msg);
        return $msg;
    }
public static function fillPlaceholders(string $msg, array $values)
    {
        foreach ($values as $key => $value)
            $msg = str_replace('{' . $key . '}', self::str($value), $msg);
        return $msg;
    }
public static function fillPlaceholders ( string $ msg , array $ values ) { foreach ( $ values as $ key => $ value ) $ msg = str_replace ( '{' . $ key . '}' , self :: str ( $ value ) , $ msg ) ; return $ msg ; }
Fill a placeholder string

@param string $msg The message to replace placeholder in
@param array $values The assocative array containing the placeholders
@return string The filled string
Fill a placeholder string