// ※Checkmoney ($ C_Money) checks whether the data is in the 99999.99 format. // ※checkemailaddr ($ C_mailaddr) determines whether the data is a valid email address. // ※checkwebaddr ($ C_weburl) determine whether it is a valid url // ※checkempty ($ C_char) determines whether the string is null // ※checkmoney ($ C_Money) checks whether the data is 99999.99 pattern
// ※Checkemailaddr ($ C_mailaddr) determines whether it is a valid email address.
// ※Checkwebaddr ($ C_weburl) determines whether the website is valid.
// ※Checkempty ($ C_char) determines whether the string is null.
// ※Checklengthbetween ($ C_char, $ I _len1, $ I _len2 = 100) determines whether it is a string within the specified length.
// ※Checkuser ($ C_user) determines whether it is a legitimate user name
// ※Checkpassword ($ C_passwd) determines whether it is a legitimate user password
// ※Checktelephone ($ C_telephone) determines whether it is a legitimate phone number.
// ※Checkvaluebetween ($ N_var, $ N_val1, $ N_val2) determines whether it is a valid value in a certain category.
// ※Checkpost ($ C_post) determines whether it is a valid ZIP code (fixed length)
// ※Checkextendname ($ C_filename, $ A_extend) determines the extended name of the uploaded file
// ※Checkimagesize ($ ImageFileName, $ LimitSize) indicates the size of the uploaded image.
// ※Alertexit ($ C_alert, $ I _goback = 0) illegally holds the alarm and exits.
// ※Alert ($ C_alert, $ I _goback = 0) indicates an invalid Alert.
// ※Replacespacialchar ($ C_char) special character interchange function
// ※Exchangemoney ($ N_money) fund conversion function
// ※Window. location function in PHP in WindowLocation ($ C_url, $ C_get = '', $ C_getOther = '')
// Configure //-----------------------------------------------------------------------------------
-------
// Configure //-----------------------------------------------------------------------------------
-------
// Function name: CheckMoney ($ C_Money)
// Usage: Check whether the data structure is 99999.99
// Parameter: $ C_Money (number to be detected)
// Return value: Boolean
// Standby Note: None
// Configure //-----------------------------------------------------------------------------------
-------
Function CheckMoney ($ C_Money)
{
If (! Ereg ('^ [0-9] [.] [0-9] $', $ C_Money) return false;
Return true;
}
// Configure //-----------------------------------------------------------------------------------
-------
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