The numeric amount is converted to the Chinese capital amount function StringInt $ num the lowercase number to be converted or the lowercase string
The code is as follows:
/**
* Function for converting a numeric amount to a Chinese capital amount
*
It is a good programmer to obtain the key code. This article collects some key code such
1. super simple page cacheIf your project is not based on a CMS system or framework, creating a simple cache system will be very practical. The following code
Parse_url is used to parse a URL and return an Associated array, which contains various components in the URL.
Php url parsing function: parse_url explanation
Parse_url-parses the URL and returns its components
Description
Array parse_url (string
Recently, the price sorting function of the most popular group buying system needs to be expanded to the $ oc array. after testing, use the following method. The core code is as follows:
The code is as follows:
$ Now = time ();
$ Oc = array (
The so-called CC attack means that the other party uses programs or some agents to continuously access your website, in this case, your website cannot be processed and your statistical system (which may be quantum or Baidu) cannot be counted.
The official ThinkPHP documentation does not provide ThinkAjax usage methods, which makes it inconvenient for many beginners to use. I learned a lot of problems today and took some time to take a study note, hope to help beginners with
The spl_autoload_register () function should be one of the most used and very core functions in mainstream frameworks. it can automatically register functions and classes and implement functions similar to the _ autoload () function, it simplifies
In the fourth phase of the PHP performance optimization series, how to use the PEARBenchmark tool to obtain the function execution performance is described in PHPWind and Discuz! Take the truncation character functions substrs and cutstr in two
Supports Chinese php encryption and decryption code. For more information, see. Php code class:
The code is as follows:
/**
* Copyright (c) 2011-01 XatuDream
* XatuDream All Rights Reserved.
* Support: 185390516.qzone.qq.com
* QQ: 185390516
*
PHP Basics description ASCII code table and character conversion, discuss the ASCII code table chart and character conversion to decimal, octal, hexadecimal, and HTML methods
I. general ASCII code table
Schematic ASCII code comparison tableTake
Use the Memcache-based Queue code written in PHP. For more information, see. Memcache
Php code:
The code is as follows:
Class MQ {
Public static $ client;
Private static $ m_real;
Private static $ m_front;
Private static $ m_data = array
The array_flip () function changes the key name of the array to its corresponding value, that is, the key name is changed to a value, and the value is changed to the key name array_flip () definition and usage.
The array_flip () function changes
PHP dynamic paging function, which is essential for PHP development paging. In fact, this is a must-have. if you don't talk about it, the PHP dynamic paging function is still good. it's relatively simple to paste the code:
The code is as follows:
Php removes array elements based on specified element values. For more information, see. Removes array elements based on specified element values
The code is as follows:
// Remove the "Cat" element
$ A = array ("a" => "Dog", "B" => "Cat", "c"
PHPCURL simulates login Sina Weibo capture page content is developed based on EaglePHP framework. For more information, see. Sina Weibo
The code is as follows:
/**
* CURL request
* @ Param String $ url request address
* @ Param Array $ data
Configure PHP in WindowsIIS6.0. there are usually three configuration methods: CGI, ISAPI, and FastCGI. these three modes can be successfully run in IIS6.0, the following describes the differences in configuration and performance of the three
Word object library file "MSWORD. OLB "(word2000 is MSWORD9.OLB) (this is for the old version, in the use of. at net2005, you can directly find the reference to the word library file in the com component in the reference dialog box. the file name
Get a code from a friend, use CURL to simulate user logon and collect
The code is as follows:
$ Cookie_jar = tempnam ('./tmp', 'cooker ');
$ Ch = curl_init ();
Curl_setopt ($ ch, CURLOPT_URL, 'login address ');
Curl_setopt ($ ch, CURLOPT_POST, 1 );
The browser and server communicate with each other over the connectionless HTTP protocol. connectionless programs are characterized by client requests to the server. the server outputs the corresponding program according to the request, cannot
Today, phpmyadmin has been configured for the customer, and the "link table addition function is not activated" issue persists. after logging on to phpmyadmin, the "link table addition function is not activated" is displayed at the bottom. To
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