echo preg_replace ("/]*) (?=\>)/I", "#", " Hello, click here to see Hello, click here to see ');
?>
Regular:/(? ]*) (?=\>)/
(? (? =exp) match the position of the exp front
This matches all characters that are not ">" before ">" After
Kohana is a pure PHP5 framework, developed based on the MVC pattern, characterized by high security, lightweight code, easy to use, and the latest KOHANA3 support HMVC mode. The following is a reference example of Kohana pseudo static configuration
Auto Load Class
Many developers write object-oriented applications, creating a PHP source file for each class definition. A very large
The trouble is having to write a long list of included files at the beginning of each script (one file per class).
supports a variety of encoded Chinese string interception functions!
Copy Code code as follows:
/*
* @todo Chinese interception, support Gb2312,gbk,utf-8,big5
*
* @param string $str to intercept
* @param int $start intercept start
Here's a simple way to log in directly using Discuz's include/common.inc.php.
Copy Code code as follows:
Include_once (".. /discuz/include/common.inc.php ");
$CTDF _userinfo = Array ();
$CTDF _userinfo["sid"] = $sid;
$CTDF
Regular:
Copy Code code as follows:
$newstext =preg_replace (Preg_replace (]+src\s*=\s*)? [^> "\s]+"? [^>]*>)/im ', ' $1 ', $newstext);
Explanation:
The difference between 1.preg_replace and str_replace:
Str_replace is only a pure
Recently in doing a project, encountered Ajax Chinese garbled problem, after an afternoon's efforts to finally perfect solution, now will write down the experience, I hope that those who are still trapped in this problem and headache people have
First of all to explain the requirements: according to our system requirements, we will be through the department name, employee name, PC name, IP address and so on fields to make a combination of queries to get the desired data results. So, for the
Occurs primarily on the server of a Windows host.
In PHP official, http://bugs.php.net/
can also find two thousand or three thousand pages of the report, their official is also helpless, after 11 iterations, still not completely resolved
Http://bugs.
1.
2.
Find login Password
Find login password
3. Setting global variables in the background and querying user information
Public Function UserInfo ($user _id) {//query System Information $system =array (' CmdId ' => '
Permission Design
There are probably several patterns:
User + Group + roles + permissions
User + Group + permissions
User + role + permissions
User + Permissions
Recently looked at other people's design methods, mostly "integer" to represent the
the original code in the animation is as follows:
Copy Code code as follows:
VERSION 1.0 CLASS
BEGIN
MultiUse =-1 ' True
persistable = 0 ' notpersistable
Databindingbehavior = 0 ' Vbnone
DataSourceBehavior = 0 ' Vbnone
Select * FROM TableName
Sql> SELECT * FROM Employees;
Select select list from tablename
Sql> select Employee_id,first_name from Employees;
Select distinct ... from tablename
Sql> SELECT distinct manager_id from employees;
|| Use of connectors and
1, the first to eliminate the problem of PHP environment chaos, Check the PHP directory under the Libmysql.dll and System32 under the same name file size is the same, if the different system32 under the kill, and then the PHP directory under the
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