His characteristics: simple, accept the parameters, give the paging; flexible: You can decide, the name of the next page (for example, I want to call Prev, NEX T and so on) can determine the number of pages displayed per page, across pages to
Fast sorting with constant positioning of datum numbers
/**
* Created by Phpstorm.
* User:saint
* DATE:15/8/5
* Time: 11:49
*/
Class Demo
{
Public $a = Array (3, 6, 9, 2, 4, 7, 1, 5, 8, 0);
First, getdata.php
namespace Webadmin\model;
Use Extendspace\excel;
......
Slightly
......
Remove data
$DATABILLARR = $this->get_list_bysql ($sql);
0, 1 in the replacement data
Define (' NL ', ' \ n ');
Define (' TB ', ');
Connecting to MySQL.
$conn = @mysql_connect (' localhost ', ' username ', ' password ')
Or Die (Mysql_errno (). ': '. Mysql_error (). NL);
Attempt to get a list of MySQL
Class Syscrypt {
Private $crypt _key;
constructor function
Public function __construct ($crypt _key) {
$this-Crypt_key = $crypt _key;
}
Public Function Php_encrypt ($txt) {
Srand (Double)
Gets all the links in the specified URL page
function Get_url_href ($url) {
$html = file_get_contents ($url);
$dom = new DOMDocument ();
@ $dom->loadhtml ($html);
$xpath = new Domxpath ($dom);
$hrefs =
/*****************************************************
*
* IsProxy
* Check whether client is under Proxy or not
* $_server[' http_x_forwarded_for '] is pivotal here
* If client is under Proxy, returns True
* If
/**
* Gets the timestamp of the start of the first day of the specified month and the end of the last day
*
* @param int $y year $m month
* @return Array (start of month, end of month)
*/
function
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