开发者

Regular Expression to Remove Beginning and End chars from a string?

开发者 https://www.devze.com 2023-01-01 08:33 出处:网络
Let\'s say I have a string like so: $file = \'widget-widget-newsletter.php\'; I want to use 开发者_高级运维preg_replace() to remove the prefix widget- and to remove the suffix .php .Is it possible
0

精彩评论

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