The learning record for the Social Security Cutoff Day interface---for PHP time (date_time and timestamp)
First of all, for the operation of time, through a few examples.
$remind_time_nowdate('Y-m-d',$end_time).'09:00:00';
This is the time stamp conversion, the date function has a lot of conversion, the first parameter is to represent the format you need, if sometimes you need only time stamp to provide da
) {$value = "pig";}
return $value;
}
function Get_xingbie ($cid) {///According to the ID number, automatically return gender
if (!isidcard ($cid)) return ';
$sexint = (int) substr ($cid, 16, 1);
return $sexint% 2 = = = 0? ' Female ': ' Male ';
}
function Isidcard () {//Check whether it is a social security number
Convert to uppercase, such as X
= Strtoupper ();
Weighting factor
$wi = Array (7, 9, 10, 5, 8
, only between the characters will be verified through. /** * Verify that the name entered is "Chinese" or whether it contains "•"*/ Public Staticboolean islegalname (String name) {if(Name.contains ("·") || Name.contains ("?")){ if(Name.matches ("^[\\u4e00-\\u9fa5]+[?] [\\u4e00-\\u9fa5]+$")){ return true; }Else { return false; } }Else { if(Name.matches ("^[\\u4e00-\\u9fa5]+$")){ return true; }Else {
The reference code is as follows:var vareacode= "${regionid}";var vrandnum= "${__random (000,999)}";var vbirthday=${__time (yyyy,py)}+parseint (Math.floor (Math.random () *48+18) + "${__time (MMDD,PMD)}";var videntifycode=vareacode+vbirthday+vrandnum;Generate a valid ID number(function () {var vcount=0;Weighting factorvar vweight=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];var vcode=[1,0, "X", 9,8,7,6,5,4,3,2];Get the first 17 digits of your IDvar vtempcode=videntifycode.split ("");for (Var i=0;i{Vcou
Information security engineers are a relatively new role. In the second half of this year in 2016, the safety engineer was included in the examination subjects, indicating that the country's demand for safety engineers was good. Security engineers include two pieces of hardware and software. The security engineers described here are primarily responsible for the
As we all know, it is increasingly difficult to launch a successful network attack this year, especially when we perform penetration testing for the customer's security services. Customers who are willing to spend money to make us a Security Service have a lot of money in their hands, such as firewall, IDs, IPS, And it is useless, we have seen an example of adding two firewalls to the front of a Web server.
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.