PHP numeric judgment function. PHP code for judging several commonly used numbers, including double precision, integers, and characters. Is TITLEHEADBODY a commonly used numeric judgment function of HTMLHEADTITLE? Code used to judge several common numbers in the array $ color PHP, including double precision, integer, and character judgment.
Common numeric judgment functions
");} // Determine the double precision of $ Temperature = 15.23; if (is_double ($ Temperature) {print (" Temperature is a double "."
");} // Integer judgment $ PageCount = 2234; if (is_integer ($ PageCount) {print (" $ PageCount is an integer "."
") ;}// Object judgment class widget {var $ name; var $ length ;}$ thing = new widget; if (is_object ($ thing )) {print ("thing is an object "."
");} // Determine the character $ Greeting =" Hello "; if (is_string ($ Greeting) {print (" Greeting is a string "."
") ;}?> Articles you may be interested in
- PHP functions for converting Arabic numerals into Chinese characters
- PHP generates continuous numbers (letters) array function range () analysis, PHP lottery program function
- Common PHP variable judgment functions
- Php's most precise string length truncation function
- Php function for getting the first letter of Chinese characters and pinyin (actually usable)
- Php checks whether functions, classes, and class methods exist.
- Php's function for determining information about visiting Spider
- Php reads the directory and lists the functions that display the files in the directory.
Bytes. Common numeric judgment functions of html head title/head body? // Judge the array $ color...