php stripos 返回不正确

<?php

if (stripos('int', 'int(10)') !== false) {
    echo 'int';
} else {
    echo 'other';
}

是我自己弄错了,看手册烟花了,不好意思

阅读 3k
1 个回答

stripos('int(10)', 'int')

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题