Name

left — returns substring taken from left of string argument

Synopsis

left ( str string ,
  count integer );
 

Description

left returns a subsequence of string str, taking count characters from the beginning of the string.

If count is zero an empty string '' is returned.

If length of str is less than count then a copy of the whole str is returned.

left('AbracadabrA',4) -> 'Abra'