1、判断字符串开头是否为给定内容
$res1 = Str::StartsWith('ruike','rppui');
false
2、判断字符串结尾是否为给定内容
Str::endsWith('ruike','ke');
3、给定字符串换成首字母大写
Str::studly('rui_me');
RuiMe标签:字符,函数,ruike,给定,str,Str,字符串 From: https://www.cnblogs.com/mingqp/p/16831282.html
1、判断字符串开头是否为给定内容
$res1 = Str::StartsWith('ruike','rppui');
false
2、判断字符串结尾是否为给定内容
Str::endsWith('ruike','ke');
3、给定字符串换成首字母大写
Str::studly('rui_me');
RuiMe标签:字符,函数,ruike,给定,str,Str,字符串 From: https://www.cnblogs.com/mingqp/p/16831282.html