PHP number judgment function _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.