$post _content = "@oschina and @twitter in the study of # Regular expressions with #php# # filter topics and object names";
$tag _pattern = "/\# ([^\#|.] +)\#/";
Preg_match_all ($tag _pattern, $post _content, $tagsarr);
$
Seems to remember the previous one, I wrote it, today this is online, from: http://www.cnblogs.com/zcy_soft/archive/2010/12/13/1904791.html
/* Chinese judgment problem, in fact, there are many knowledge, the underlying internal code,
Say Shenzhen 2011 of the Universiade is not to come, so deep in the development of a volunteer service station, I was the youth League to serve. A small Form toolkit was written in the process. The validation feature was not implemented by me, but
Basic functions: 1, to achieve the maintenance of basic information of students (increase and deletion), 2, to achieve the maintenance of course information (increase and deletion), 3, to achieve the management of elective courses (elective courses,
/**
Get the physical (MAC) address of the machine card
**/
Class Getmacaddr
{
var $return _array = Array (); Returns an array of strings with MAC addresses
var $mac _addr;
function getmacaddr ($os
This is to use open source project Phpmailer to achieve the mail, first download the file, I download it here is 5.1 version, and then put three class.***.php files into the project file, I first use is Gmail, but failed, the problem is
. How PHP generates static HTML files
1, below use a method of the template!
$fp = fopen ("templets.html", "a");
if ($fp) {
$fup = Fread ($fp, FileSize ("templets.html"));
$FP 2 = fopen ("html.shtml"
The Kohana view layer is simple, and the variable data is placed in the $_data array. So inheriting the Kohana_view class and covering some of the methods makes it very easy to use the third-party template engine as the view layer.The example here
WordPress in a certain period of time the number of articles, the specific effect can be no cold blog view
function num_posts ($days =1) {//$days is the set time of the day;
Global $wpdb;
$today = Gmdate ('
PHP uses the filter extension to write parameter-handling classes.http://www.blags.org/php-security-filter-function/Exp:First introduce the fileInclude ' filter.php '$email = cfilter::email ($_post[' email ');Verify that the string is returned
List of functions:
convert_cyr_string()
crc32()
hebrev()
hebrevc()
money_format()
number_format()
Echo convert_cyr_string (' The string ', ' k ', ' I ');
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