msgbartop
better late than never
msgbarbottom

May 13 继续面试题

用PHP打印出前一天的时间格式是2006-5-10 22:21:21

echo date(‘Y-m-d H:i:s’,strtotime(‘-1 day’);

实现中文字串截取无乱码的方法。

mb_substr

如何实现字符串翻转?

strrev()

» 阅读全文

May 12 strlen

先翻手册

strlen — Get string length

那么,如果strlen的参数是数组又是嘛情况捏。。

var_dump(strlen(array(1,2,3)));

先echo array(1,2,3); 结果是Array,所以strlen(‘Array’)不就是5了咩。

嘎嘎。。。

» 阅读全文

May 05 Yahoo! PHP 笔试题

答案在这里是自己写的,但是不排除参考网上的啊。。。嘎嘎。。

1. Which of the following will not add john to the users array?

1. 1. $users[] = ‘john’;

2. 2. array_add($users,’john’);

3. 3. array_push($users,’john’);

4. 4. $users ||= ‘john’;

» 阅读全文

第 2 页,共 2 页12