Use Str-replace instead of Ereg-replace
Programmers who are accustomed to programming with Perl are more likely to use ereg_replace to do string substitution work, because the use of ereg_replace in PHP is similar to that of pattern matching in Perl.
Transferred from: http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/08/09/2132603.htmlRecently, with the gradual standardization of I18N (internationalization), I will also talk about how to achieve internationalization support in PHP. As with
This article mainly introduces the array usage in the PHP getting started tutorial, and summarizes and analyzes common php operation skills on array creation, printing, traversing, acquisition, sorting, insertion, and deletion in combination with a
Speaking of PHP even MongoDB, had to first introduce the official PHP manual, Web site in: http://us.php.net/manual/en/book.mongo.php
in the MONGO extension of PHP, 4 types of Interfaces (objects) are provided:
1, for MongoDB connection operation:
In the wangking717 of the "PHP GetText way to achieve UTF-8 internationalization of multiple languages (i18n)" (Original: http://blog.csdn.net/wangking717/article/details/4739465# Reply) After the operation of their own a little discrepancy, so note
Introduction: This is Php.ProgramThis section describes the related knowledge, skills, experience, and some PHP source code on the details page of internationalization (reprinted.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?
First, the use of GetText, because Smarty have the corresponding GetText plug-in, so directly with the plug-in
The steps are as follows:
1.1 Add the following code to the common include file:
$domain _info[' Lang '] is the language set
Common operations for MongoDBSee the Manual, PHP official http://us2.php.net/manual/en/mongo.manual.phpYou can also see the official MongoDB tutorialDatabase connection⑴ default Format$m = new Mongo ();This is the default connection to the local 2701
Php file system file? Handle letter?
1. file operations.
Open the file:
? The specified file ?? Return phase? ? If the specified file does not exist, then? Possible? ?? Jian ?? File.
Resource fopen (string filename, string mode [, int use_include_
Use gettext in PHP to support multi-language methods. Today, we use a simple example to describe the usage of getText in PHP (getText is a series of tools and library functions that help programmers and translators develop multilingual software ),
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.