Help_Command::get_max_len()private staticWP-CLI 1.0

Method of the class: Help_Command{}

No Hooks.

Return

null. Nothing.

Usage

$result = Help_Command::get_max_len( $strings );
$strings (required)
-

Help_Command::get_max_len() code WP-CLI 2.7.0-alpha

private static function get_max_len( $strings ) {
	$max_len = 0;
	foreach ( $strings as $str ) {
		$len = strlen( $str );
		if ( $len > $max_len ) {
			$max_len = $len;
		}
	}

	return $max_len;
}