Changeset 2742 for trunk/system/helpers/valid.php
- Timestamp:
- 06/02/2008 12:51:45 PM (6 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/valid.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/valid.php
r2728 r2742 289 289 } 290 290 291 /**292 * Checks if a string is a valid identifier.293 *294 * @param string input string295 * @return boolean296 */297 public static function id($str)298 {299 return (bool) preg_match('/^[a-z][a-z0-9_]++$/iD', (string) $str);300 }301 302 291 } // End valid
