6 if (strpos($variable_to_search, ".") !== FALSE) { // The variable contains a period. } 來源 2010-11-19 20:56:10 cdhowie