Delete first 3 characters and last 3 characters from String PHP

后端 未结 6 2047
情歌与酒
情歌与酒 2020-11-29 06:12

I need to delete the first 3 letters of a string and the last 3 letters of a string. I know I can use substr() to start at a certain character but if I need to strip both fi

6条回答
  •  渐次进展
    2020-11-29 07:06

    I don't know php, but can't you take the length of the string, start as position 3 and take length-6 characters using substr?

提交回复
热议问题