开发者

how can I take starting two character of a string

开发者 https://www.devze.com 2022-12-30 14:56 出处:网络
how can I take starting two character of a string regardless the string lengh开发者_开发问答t.With substr()

how can I take starting two character of a string regardless the string lengh开发者_开发问答t.


With substr()

$string = substr("something", 0, 2);
0

精彩评论

暂无评论...
验证码 换一张
取 消