PHP converts lowercase letters to uppercase letters
[PHP] code
/**
* Lowercase to uppercase
*
* @ Param string $ number value
* @ Param string $ int_unit currency unit. the default value is "RMB". some
A simple php database connection and text cache comprehensive class
[PHP] code
Class Db {
Protected $ _ connect;
Protected $ _ db = Array ();
Protected $ _ cache = Array ();
Public function _ construct ($
PHP generates a letter prefix
[PHP] code
Function ff_letter_first ($ s0 ){
$ Firstchar_ord = ord (strtoupper ($ s0 {0 }));
If ($ firstchar_ord> = 65 and $ firstchar_ord = 48 and $ firstchar_ord
$ S = iconv ("UTF-8"
PHP code that encapsulates the getpost method
[PHP] code
Function g ($ name, $ defaultValue = ""){
// Php is case sensitive and both are lowercase.
$ _ GET = array_change_key_case ($ _ GET, CASE_LOWER );
$ Name =
10 tips to optimize the Laravel5 framework of the PHP program
Performance has always been a criticism of the Laravel framework, so tuning Laravel programs is a required skill.Next, I will share some development best practices www.itxdl.cn,
Implement md5 check file in PHP
[PHP] code
// Blog. qita. in
Echo 'md5 check [Directory direct md5 directory name, the entire file content will be md5_file]';
$ Filename = "test.txt ";
If (is_dir ($
Phpdes encryption and decryption instance
Des encryption is an encryption method that involves many Internet applications in symmetric encryption. php uses the mcrypt extension library to support des encryption and uses des encryption in
Phpsmtp sends an email
Php needs to send mail via smtp through a class smtp The code for sending an email is as follows:
Require_once 'smtp. php ';
######################################## ##
$ Smtpserver =
Remove BOM header in PHP
BOM: Byte Order Mark UTF-8 BOM is also called the UTF-8 signature, in fact, the UTF-8 BOM has no effect on the UFT-8, is to support the UTF-16, UTF-32 added BOM, BOM signature indicates the encoding of the current
Php transparent watermark generation
[PHP] code
/*
* Created on 2010-10-27
* BY QQ542900563
* Copyrights Reserved 2000-2020
* This example shows how to generate an image watermark.
*/
//
PHP Singleton mode implementation
/**
*
* User: jifei
* Date: 2013-07-31
* Time: 23: 19
*/
/**
* Class Singleton
* The Singleton mode, also called the Singleton mode, is a common
Php5 object replication, clone, Shap replication, and deep replication
Origin of object replicationWhy does an object have the concept of "copying", which is closely related to the object value passing method in PHP5. let's take a look at
Use the PHPExcel Library
Introduce the PHPExcel library before use
/**
* Excel writing, based on the PHPExcel Library
* @ Param array $ data
* @ Param $ file
* @ Return bool
* @ Throws PHPExcel_Exception
Php calls webservices in two ways: soap and curl
Take http://www.webxml.com.cn/zh_cn/index.aspx 1. use soap to call
// The server supports soap extension:
/* Example 1:
$ Client = new SoapClient
PHP code used to determine whether a device is a mobile phone tablet
Page matching for mobile devices is often required during web development. of course, you can directly make the website responsive, but if you don't want to do this, you
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