FizzBuzzWhizz of php
Source: other FizzBuzzWhizz: http://www.oschina.net/code/snippet_1414109_35450;Review php class with regular expressions, which is not very well written.
Class NumberGame {
Private $ str = "start";
Some simple php Tools
Some common tools used in daily work summary adopt simple implementation methods, with a single function and no complex dependencies.Managed address: http://git.oschina.net/caoyong2619/php-utils.git
/**
Improved PHP code execution efficiency with good writing specifications [II]
Use single quotes instead of double quotes to include strings, which is faster. Because PHP will search for variables in strings enclosed by double quotes, but not
Domain Modeling basics
Implements delayed loading and registration as uniqueJava introduces the concept of factory and warehouse, while php only needs two or three lines of code to complete the same function.
/**
* Domain
Improved PHP code execution efficiency with good writing specifications [Part 1]
Use single quotes instead of double quotes to include strings, which is faster. Because PHP will search for variables in strings enclosed by double quotes, but
DNSPODAPI domain name resolution example
Dnspod api domain name resolution example* This program is modified based on the dns api of "president Li ".* Blog http://blog.0907.org/Php dnspod api
Create image thumbnails in PHP
/**
* Upload an image to generate a thumbnail
*
* GD2 database support is required
*
* During initialization, the new thumbnails parameter
PHPmemcache ring queue
PHP memcache ring queue class. Beginner, I have never learned the data structure. because of the business needs, I just tried it hard! The original form is the PHP memcache queue code shared by lusi on oschina. To
Personal website navigation
/**********************************/WebGrid/**********************************/Overview: WebGrid is a personal URL navigation page for editingYou can use it to add the required URL on the page.Configuration:
PHPCMS loads different advertisements based on the column
PHPCMS loads different advertisements based on the columnFirst, create a configuration file for the advertisement and place it in caches/config/ad. php:
// Load the
Batch or single conversion file encoding
Convert the file encoding. for example, if the file is originally gbk and converted to UTF-8, you can convert a single file or the entire directory, and select whether to recursive the
Simple usage of ZF framework Db stators
Homework
/* How to use the status server */
// Introduce the Loader class (automatic loading class)
Require_once ("Zend/Loader. php ");
// Use the Loader class to
CURL does not use file access cookies
CURL does not use COOKIEJAR or COOKIEFILE to access cookies.
/* ----- Save COOKIE -----*/
$ Url = 'www .xxx.com '; // url
$ Post = "id = user & pwd = 123456"; // POST data
$
Parse HTML tags, quickly search for nodes, and obtain node information
For details and usage, click the source code.
/**
* Html tag parsing package
*
* @ Category TagParse
* @ Package TagParse
* @
While we are still young
People always say that youth is like a meteor, and it is very brilliant but short-lived. When you are upright and young, you must not only enjoy this splendid youth, but also strive to be the number one person in
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