小编xvi*_*ilo的帖子

匹配字符串与shell样式的通配符(例如,*)

是否可以在if语句中使用通配符?

我的代码:

* =通配符

if ($admin =='*@some.text.here') {

}
Run Code Online (Sandbox Code Playgroud)

$admin 将是以下之一:

  • xvilo@some.text.here
  • bot!bot@some.text.here
  • lakjsdflkjasdflkj@some.text.here

php string wildcard

5
推荐指数
1
解决办法
3889
查看次数

标签 统计

php ×1

string ×1

wildcard ×1