Just look at the code, it's a simple PHP class
Copy Code code as follows:
$IDCard = new Idcard ();
Var_dump ($IDCard:: Iscard ($_get[' card '));
/**
* ID card processing class
*/
class Idcard {
//Check ID card
This article examples for you to share the Android news browsing client, based on the PHP background, for your reference, the specific content as follows
1, the use of Hbuilder for PHP environment configuration, testing whether the MySQL statement
Copy Code code as follows:
echo " numeric cast:";
$string = "2a";
$string 1=intval ($string);
Echo ' $string value of 1: '. $string 1. ' Value of $string 2: ';//single quotation mark does not output variable, output as-is
$string 2=
http://php-accelerator.co.uk/can be downloaded, is a strong opponent of Zend. is free of charge. I'm already using it. The results are not bad.
Modify PHP.ini Plus:
Zend_extension =/usr/local/lib/php_accelerator_1.3.3r2.so
PHPA = On
Phpa.tweaks = On
XML processing is often encountered in the development process, PHP also has a very rich support, this article is only a few of these analytical techniques to do a brief description, including: XML parser, SimpleXML, XMLReader, DOMDocument.
1. XML
Design ideasTaking into account the mere acquisition of a picture of a webpage, too troublesome, so directly collect his list page, get the URL of the list and then collect in one by one, but with PHP match the URL of the list page is too
Serialize () and unserialize () are explained in the PHP manual:
Serialize-generates a storable representation of a value
Serialize-produces a representation of a value that can be stored
Unserialize-creates a PHP value from a stored
This article describes the PHP implementation of the multiple file upload class and usage. Share to everyone for your reference, specific as follows:
1, upFiles.css.php documents
$val) {$key = Strtolower ($key);
View whether the subscript
This article describes a simple way to create a zip-compressed file in PHP. Share to everyone for your reference, specific as follows:
/* Creates a compressed zip file */function Create_zip ($files = Array (), $destination = ', $overwrite =
This article illustrates a solution to the inconsistency of the return value of a stored procedure called by PHP. Share to everyone for your reference, specific as follows:
I met a classmate today. The stored procedure return value often gets an
Xu Zuning PHP version of the Escape/unescape function
Copy Code code as follows:
function Escape ($STR) {
Preg_match_all ("/[\x80-\xff].| [\x01-\x7f]+/", $str, $r);
$ar = $r [0];
foreach ($ar as $k => $v) {
if (Ord ($v [0]) $ar [$k] =
The default setting for PHP is to display notice warning prompts, which can cause the page to not display properly. You have no defined variables to use directly. However, when editing PHP is not as strict as C + +, programming often will use this
This article summarizes various DNS setting methods in PDO connection database in PHP. Share to everyone for your reference, specific as follows:
The DNS writing method in PDO is as follows:
MSSQL: Host=localhost;dbname=testdb
Sybase:
The advantage of the printf () function is that you can format the output!
Full format control for printf:
%-0 M.N L or H format characters
The following is a description of the constituent format description:
①%: Represents the starting symbol
This article describes the PHP implementation based on the MYSQLI model base class. Share to everyone for your reference, specific as follows:
DB.class.php
set_charset (' UTF8 ');
return $_mysqli;
}
Cleanup, releasing
This article analyzes the PHP function Import_request_variables () usage. Share to everyone for your reference, specific as follows:
The Import_request_variables function can import Get/post/cookie variables into the global scope when
First, use ApacheInstallation of ≡php 5.2.5
1, to its official site download Php-5.2.5-win32.zip and decompression (said: Do not download and use its installer, this way although very automated, very intelligent, but there are many aspects of the
Copy Code code as follows:
?
Heap Sorting application
Class Heapsort
{
var $a;
function SetArray ($a)//Get array
{
$this->a= $a;
}
function Runvalue ($b, $c)//$a represents an array, $b represents the sort heap, and the $c represents
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