dpvmtdu364462 2010-11-19 20:54
浏览 47
已采纳

在php字符串中检测是否处于句点中

How can i detect if if a period . is in the php var?

  • 写回答

1条回答 默认 最新

  • douao1926 2010-11-19 20:56
    关注
    if (strpos($variable_to_search, ".") !== FALSE) {
        // The variable contains a period.
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?