str:具有多字节支持的快速可靠和强大的类型化字符串操作库 源码
关于 str / str $ str = new Str ( 'Hello, 世界' ); $ str -> last ( 2 ); // 世界 $ str -> chars (); // ['世', '界'] $ str -> ensureLeft ( 'Hello, ' ) // Hello, 世界 -> ensureRight ( '!!!' ) // Hello, 世界!!! -> trimRight ( '!' ) // Hello, 世界 -> prepend ( 'Str say - ' ); // Str say - Hello, 世界 $ s
下载地址
用户评论