This article is mainly to share with you the PHP simple face test Summary, I hope to help everyone.
1. The difference between echo, print, and Print_r:
ECHO is a PHP statement that can output one or more strings with no return value.
Print,
1. PHP Binary Security Binary-safe
PHP's internal functions are guaranteed to achieve the desired results when manipulating binary data, such as Str_replace, Stristr, strcmp, and so on, we say that these functions are binary safe.
The following is a
1) This article is mainly to share with you how to install the configuration php linux, download PHP installation package, here choose PHP 5.6 version, hope to help everyone.
And unzip the PHP installation package
wget
The difference between version 5.0 and previous version is large, this article gives some 5.0 main differences for users who are familiar with the 3.2 version. This article mainly shares the differences between the ThinkPHP5.0 version and the
In our PHP development will often encounter fopen () and file_get_contents (), I believe many students find that these two functions are basically similar, then we say today PHP fopen () and file_get_contents () The difference in the end, no more
With PHP becoming the preferred server-side program for many programmers, it is imperative to combine professional technology with programming constructs.
Design pattern (patterns) is a reusable solution for a frequently occurring problem in a
Carbon is a very human in PHP time and date processing plug-in, this article is mainly to share with you in PHP date-time processing weapon (Carbon) instance, I hope to help everyone.
Carbon Basic usage
1, basic Application $now =
This article mainly share with you to configure PHP and MySQL environment to implement dynamic site code examples, I hope to help everyone.
First step: Configure the PHP environment, open the Putty connection to your own server to execute the
This article is mainly to share with you in PHP filter protocol detailed, hope to help everyone.
php://-access to each input/output stream (I/O streams) php://input is a read-only stream that can access the raw data of the request. Php://filter is
Compiled a few php read files in a few ways to facilitate later access, hope to help everyone.
1.frea,
string fread (int $handle, int $length)
Fread () reads up to length bytes from a file pointed to by handle. The function stops reading the file
In PHP development, conditional judgment statements are very common, conditional judgment statement This is also a special basis in PHP, PHP in the daily development of the use of a very broad, then we must have a firm grasp! Today we will talk
First, what is a singleton mode?
1. Meaning
As an object's creation mode, Singleton mode ensures that a class has only one instance, and instantiates itself and provides this instance to the whole system globally. Instead of creating an instance
Some functions such as call_user_func () or usort () can accept user-defined callback functions as parameters. A callback function can be more than just a simple function, but it can also be a method of an object, including static class
This article mainly and we introduce PHP implementation to get the current millisecond timestamp method, I hope to help everyone.
Recently in the background of a smart home project, you need to upload the user's smart device configuration
Recently in the background management of the project, the background usually has the need to export data to Excel, after the search is usually recommended to use PHP Excel, I often use the laravel, for PHP Excel also has a very useful corresponding
1. Download the Redis extension for PHP
wget https://github.com/phpredis/phpredis/archive/3.1.4.tar.gz
2. Unzip
TAR-XVF 3.1.4.tar.gz into the folder
3. Compiling
Missing installation php-devel using Phpize error
After using Yum install
This article mainly share with you PHP read Excel and show implementation code, hope to help everyone.
Use this tool. Phpexcelreader because it's free.
Write the index.php import resource file excel_reader2.php .
dump (true,true);//output result,
This article is mainly to share with you the PHP performance optimization tips, hoping to help you write better PHP code.
(1) foreach is more efficient, instead of using foreach as a while and for loop;
(2) Inside the loop do not declare
If the installation is Mysql-python, after import mysqldb error. Then it is recommended not to use Mysql-python. There is no support after the Python3.6 version.
I personally use a third-party library pymysql and enter the following code in the
Route::group ([' Middleware ' = [' web ']], function () { //}), still error, see the session is using the default file, no problem, the file is also writable, and then in
The kernel.php has been added in the
protected $middleware = [
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