Using PHP to extract the birthday from the ID card, PHP ID extract Birthday
Use PHP to extract birthdays from your ID, including 15-and 18-bit IDs
function Getidcardinfo ($IDCard, $format =1) {$result [' Error ']=0;//0: Unknown error, 1: Identity
The difference between single and double quotation marks in PHP, double quotes in PHP quotes
1. Defining stringsIn PHP, the definition of a string can use either single quotation marks or double quotes. However, you must use the same single or
PHP simple way to create a zip compressed file,
This article describes a simple way for PHP to create a zip archive. Share to everyone for your reference, as follows:
/* Creates a compressed zip file */function create_zip ($files = Array (),
PHP Debug_backtrace's cranky, phpdebugbacktrace
The sample code test environment for this article is Apmserv (PHP5.2.6) under Windows
Briefly
As you may all know, PHP has a function called debug_backtrace, which can be traced back to the function
PHP gd and other proportional scaling compressed picture functions,
The example of this article for you to share the PHP gd and other proportional scaling compressed picture functions for your reference, the specific content as follows
600?600:
PHP Recursive traversal multidimensional array implementation of infinite classification method, recursive multidimensional
In this paper, we describe the method of recursive traversal of multi-dimensional arrays in PHP for infinite classification.
PHP Process Control, PHP process
Php-if statements
The IF statement is used to execute code only when the specified condition is true .
Grammar
if (condition) {The code to execute when the condition is established;}
If the current time is less than
Explain the differences between cookies and sessions in PHP and summary of cookie and session usage, cookiesession
Specifically, the cookie is stored in the "client", and the session is stored on the "server"
Cookies are implemented by extending
PHP implementation in the site to add the ability to send mail, PHP mail sent
The following summer blog about how to add a message in the site to send the function.First, you need to download an SMTP PHP mail send class, the code is as
PHP inserts a new character at the specified position in the string, and the PHP string specifies the character
Because the project uses the DataTable table to load the background data, the table is queried for the policy state selected by the
Mac installation xampp MySQL and Aptche can open normally, but I got a phpmyadmin login without knowing the user name password, and then I pass the xampp in the MySQL configuration file to change the password to 111111, then the user root, Password 1
PHP Exercises--print a hollow diamond with a for loop, for Diamond
Idea: 1, write code to print a solid pyramid
2. Modify the code to empty the pyramid
3. Revise the code to reverse the pyramid
4. Revise the inverted code to empty the pyramid
5,
CI Framework extension System core class method analysis, CI framework
This paper describes the method of CI framework extending system core class. Share to everyone for your reference, as follows:
First of all, your system extension class is
Redis also has key-value to store, can exist in memory, but also support persistent storage, and Redis cluster, distributed deployment, mirror synchronization are native support, More convenient than memcached (memcached also have to write their own
Yii Framework components and Event behavior management, YII behavior management
The examples in this paper describe the YII framework components and event behavior management. Share to everyone for your reference, as follows:
Yii is a
Notice:this article is working on progress!
This chapter introduces the PHP classes.
Now, basically every language supports object-oriented, and of course PHP is not listed.
PHP does not support object-oriented in previous versions, but has been
Uppercase and lowercase conversion related functions
Strtolower ()
Strtoupper ()
Ucfirst ()
Ucword ()
Text HTML tag handler function
NL2BR ()Htmllentities ()Htmlspecialchars ()Stripslashes ()Strip_tags ()Number_format ()Strrev ()MD5 ()
Error handling is an important part of creating scripts and Web applications. If your code lacks error detection coding, then the program looks unprofessional and opens the door to security risks. This tutorial introduces some of the most important
While talking on chat application, these days people hate those kind application made in PHP which need page refreshing . In this post, I'll show you the six different free AJAX chat applications which might is very useful if you've to use Ajax BAS
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.