This article describes in detail the differences and usage of strlen, mb_strlen, substr (), mb_substr (), and mb_strcut. For more information, see.
Use the following functions to split the mb _ * string:Configuration in winInstall php_mbstring.dll
: This article mainly introduces some tips for PHP and apache configuration. For more information about PHP tutorials, see. 1. Extension_dir = string
Scope: PHP_INI_SYSTEM
Default value:./(in windows, the default value is ext)
Tell PHP where the
1. Clean up the old version of PHP on the system
# You can use the following methods
Rpm-qa|grep Php*yum List Installed | grep php
# generally need to clean up the following software
Yum Remove php php-devel php-cli php-common php-gd php-ldap
Difference analysis between substr (), mb_substr () and mb_strcut functions in php
This article introduces the usage and difference of the string truncation function, substr (), mb_substr () and mb_strcut in php. For more information,
: This article mainly introduces how to install php54 or 55 in yum. if you are interested in the PHP Tutorial, refer to it. Install php 5.4 or 5.5 using yum
Use centos6.5 as the testing machine.
The following two commands can easily install php 5.4
Before moving Extension=php_mbstring.dll to Extension=php_exif.dll in the php.ini file.
Because EXIF wants to call mbstring, mbstring must be in front.
Php_exif.dll, EXIF function library, need php_mbstring.dll.
And in php.ini, Php_exif.dll must
PHP substr () function can split the text, but to split the text if the inclusion of Chinese characters tend to encounter problems, you can use MB_SUBSTR ()/mb_strcut This function, Mb_substr ()/mb_strcut usage and substr () similar, Just in
Solution: In the phpini file, move extensionphp_mbstringdll to extensionphp_exifdll, because exif needs to call mbstring, so mbstring must be in front
Solution:In the php. ini file, move extension = php_mbstring.dll to extension = php_exif.dll,
The difference and usage of PHP substr (), Mb_substr () and Mb_strcut and the truncate regulator in Smarty template
PHP substr () function can split the text, but to split the text if the inclusion of Chinese characters tend to encounter problems,
We are using1, the use of mbstring Extension Library MB_SUBSTR interception will not appear garbled.
2, write the interception function, but the efficiency is not as high as the Mbstring expansion library.
3, if only for the output interception of
This article describes how to upgrade php5.3 to php5.4 or php5.5, for more information about how to use yum to install php 5.4 or 5.5, refer to our php technical article. Of course we use centos6.5 as our testing machine. In fact, it is very simple,
Use php class diagram drawing tool -- phuml to build the class diagram of the project
Yesterday, I occasionally searched for the tools used to create UML class diagrams on the Internet. I was planning to create a class diagram for the statusnet
The substr () function can split text. However, if the text to be split contains Chinese characters, you can use the mb_substr ()/mb_strcut function, mb_substr () the usage of/mb_strcut is similar to that of substr (), but an additional parameter
Install PHP and related extensions in Ubuntu
1.
Download php's latest source code (to be registered) at http://php.net/downloads.phpand my version is php-5.3.8
2.
./Configure -- prefix =/usr/local/PhP5 -- with-apxs2 =/usr/local/apache2/bin/apxs --
Configure the Lnmp environment with the source code in ubuntu16 and ubuntu16lnmp
Recently, the system was upgraded to the long-term support version of ubuntu16 and the lnmp environment was redeployed.
Specify the directory source code
MySQL Study -- Use of MySQL tools (phpMyAdmin) and -- mysqlphpmyadminMySQL Study-Use of MySQL tool (phpMyAdmin)System Environment: RedHat EL6Database: MySQL 5.6.4-m7PhpMyAdmin is a software tool written in PHP. It is a MySQL database management tool
The two sections of VB code are respectively converted to UTF-8 (UTF8ENCODEURI) and GB2312 (GBKENCODEURI.Private sub commandementclick ()DEBUG. PRINT (UTF8ENCODEURI ("Chinese character "))DEBUG. PRINT (GBKENCODEURI ("Chinese character "))END
Example of adding an extension library for PHP in Linux: adding an extension library for mbstring
1. go to the PHP source code directory (if there is no source code, run the command: # php-v to view the version number, and then download the
XAMPP's Linux version (x86 compatible processor edition) was formerly known as Lampp, but in order to avoid misunderstandings, its name is the same? Linux version of XAMPP ?. So, if you're looking for lampp to download, install, configure, use,
1, I downloaded is phpmyadmin-3.2.3-all-languages version, this version requires PHP 5.2 or higher version, so you must find ways to upgrade the system with the PHP 5.1 version, the specific operation is to use the system Yum "Test Library" Update
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.