跳到主要内容

strdel

注意

这个$函数以小写字母开头。

描述

删除字符串的指定部分。

参数

名称说明
string[]需要操作的字符串
start要删除的起始位置(含)
end要删除的结束位置(含)

返回值

此函数不返回任何特定值。

示例

new string[42] = "We will delete everything apart from this";
strdel(string, 0, 37); // 字符串现在为 "this"

相关函数

  • strcmp: 比较两个字符串是否相同
  • strfind: 在字符串中搜索子串
  • strins: 向字符串插入内容
  • strlen: 获取字符串长度
  • strmid: 截取子字符串
  • strpack: 压缩字符串存储
  • strval: 字符串转整型数值
  • strcat: 字符串拼接操作