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

Kev*_*erw 0 php

如何检测.php var中是否有句点?

cdh*_*wie 6

if (strpos($variable_to_search, ".") !== FALSE) {
    // The variable contains a period.
}
Run Code Online (Sandbox Code Playgroud)