substring(start,stop) [start,stop)
两个参数是起止位置,包括“起”,不包括“止”,用区间表示就是[start,stop)
substr(start,length)
第一个参数是起始的位置,第二个参数是截取字符串的长度
substring(start,stop) [start,stop)
两个参数是起止位置,包括“起”,不包括“止”,用区间表示就是[start,stop)
substr(start,length)
第一个参数是起始的位置,第二个参数是截取字符串的长度