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. }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
if (strpos($variable_to_search, ".") !== FALSE) {
// The variable contains a period.
}