Archive for 二月, 2006

PHP中的多字节字符串处理

PHP中处理单字节编码的字符串(ASCII-compatible)时,str*()系列函数就可以完全正常工作,但是在处理多多字节编码的字符串时,比如处理下面utf-8编码的中文字符串$str=”多字节字符串测试”;时,问题就出来了大大:

< ?php
$str="多字节字符串测试";  //8 characters
echo strlen($str);             //结果却是24
?>

Read the rest of this entry »

year of fate

year of fate in ancient china,people belived that a person’s fate was a determined at birth, so the zodiac year of one’s birth would be one’s “year of fate.” To fend off the default “bad luck” in such a year,people tend to eear red underwear,read waistbands and red bracelets. according to th Chinese lunar calendar,this year is the “year of fate” for people who were born in the Year of the Dog

合肥第一高

合肥第一高

{4E7C2725-8A98-4A9B-8843-4271FCD88052}.JPG

下雪

好文章啊! 顶一下。 我映象最深的雪,也是小时候:满山遍野的白,打堆的小麦顶着一床大棉絮,真想冲上去躺一躺。

Read the rest of this entry »

2006的第一场雪

昨天晚上睡觉的时候觉得比平时要冷很多,今天起来,哇塞:漫天雪花。 好久没有看见这么打的雪了。呵呵 映象中这是上海今年最大的一场雪,呵呵,瑞雪兆丰!