Programmer's Wiki
Advertisement

left() is a VBScript function that returns the amount of characters specified in the second argument from the left of the string in the first argument.

JavaScript[]

function left( str, len ) {
	return str.substr( 0, len );
}

PHP[]

function left( $str, $len ) {
	return substr( $str, 0, $len );
}

See also[]

Advertisement