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 example describes the way PHP uses Curl to judge Web page 404 (nonexistent). Share to everyone for your reference, specific as follows:
The run result is: does not exist
Supplemental: For HTTP request header information, refer
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
This example for you to share the PHP single linked list of specific code for your reference, the specific content as follows
id = $id;
$this->name = $name;
The static public function show ($head) {$cur = $head;
while ($cur->next)
As shown below:
Copy Code code as follows:
?
/**
* Xml2array () would convert the given XML text to a array in the XML structure.
* link:http://www.bin-co.com/php/scripts/xml2array/
* Arguments: $contents-the XML text
* $get
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 simple way to implement a text counter in PHP. Share to everyone for your reference, specific as follows:
More about PHP Interested readers can view the site topics: "PHP Regular Expression Usage Summary",
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] =
Copy Code code as follows:
$lenth = 19;
$str = "How will the long title of the news show only a few words in front of, back with ..." To replace it? ";
echo strlen ($str) ?>
Copy Code code as follows:
.
/*
@
PHP Metaphone () function to compute the Metaphone key of the string, this article introduces the basic usage and example of PHP Metaphone () function to the code farmers, the code farmers need to refer to the method and examples of this article.
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 following is the generation of EAN_13 Standard barcode PHP method, need PHP+GD environment
Copy Code code as follows:
?
function Ean_13 ($code) {
The width of a cell
$LW = 2;
Barcode High
$hi = 100;
The guide code is no
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