共26页: 首页 上一页 16 17 18 19 20 21 22 23 24 下一页 末页 
摘要: Assumed that $old_array is an array.[代码]Pay attention to the code: {set $new_array = $new_array|append($model)}, we have to use "set" to add the value to the array!So wired!阅读全文
posted @ 2010-05-18 17:20 DavidHHuan 阅读(162) 评论(0) 编辑
摘要: Assume that we have such function:[代码]When we use it as below:代码If we remove the "&" from the function, [代码]The same test code:代码So we got the note that, when using reference in function, we have ...阅读全文
posted @ 2010-05-15 12:28 DavidHHuan 阅读(142) 评论(0) 编辑
摘要: Which function can be used to format a local timestamp according to a specific locale?The answer is :[代码]阅读全文
posted @ 2010-05-14 16:43 DavidHHuan 阅读(157) 评论(0) 编辑
摘要: Let say the type of column of "created" is datetime, [代码]阅读全文
posted @ 2010-05-14 15:47 DavidHHuan 阅读(377) 评论(0) 编辑
摘要: Assuming that image.jpg exists and is readable by PHP, how will the following script bedisplayed if called directly from a browser?[代码]There are four answers: A. As a JPEG imageB. As a binary file for...阅读全文
posted @ 2010-05-14 15:30 DavidHHuan 阅读(198) 评论(0) 编辑
摘要: What will the following script output?[代码]"Testing 345"?No, we can get the reason from the book of Zend PHP Certification Test Book".This question tests your knowledge of string manipulation and opera...阅读全文
posted @ 2010-05-14 11:15 DavidHHuan 阅读(167) 评论(0) 编辑
摘要: 假设文档名为 myfile.iso进入文档所在目录,然后输入如下代码:[代码]过一段时间后,就会在该目录生成 myfile 文件,里面包含了 myfile.iso 的MD5码阅读全文
posted @ 2010-05-13 15:48 DavidHHuan 阅读(270) 评论(0) 编辑
摘要: 代码The result: red阅读全文
posted @ 2010-05-12 16:57 DavidHHuan 阅读(111) 评论(0) 编辑
摘要: 假设lampp下载后解压到 /opt/lampp在terminal里面输入下面命令:[代码]阅读全文
posted @ 2010-05-05 17:04 DavidHHuan 阅读(127) 评论(0) 编辑
摘要: The sequence function allows for creating a sequence which is iteratedover and wrapped around when the end is reached. This is particularlyuseful when you want to alternate colors in a list. It's poss...阅读全文
posted @ 2010-05-05 13:57 DavidHHuan 阅读(151) 评论(0) 编辑
摘要: When going through the manual, we can know that, fetch_alias() can be thought of as a configuration-file based version of the fetch() operator.But the fetch_alias() must be defined in configuration ov...阅读全文
posted @ 2010-05-05 11:22 DavidHHuan 阅读(188) 评论(0) 编辑
摘要: mark down:vim的重做(redo)的快捷键提示是 ^R 的按法是 ctrl + r阅读全文
posted @ 2010-05-04 17:29 DavidHHuan 阅读(804) 评论(0) 编辑
摘要: There are two methods to do that: 1. ezhttp("myvariable", "get", TRUE);2. ezhttp_hasvariable("myvariable", "get");The second method is recommand to use.~阅读全文
posted @ 2010-05-04 12:02 DavidHHuan 阅读(165) 评论(0) 编辑
摘要: 下面语句就可以获取当前控制器的名称了!Yii::app()->controller->id阅读全文
posted @ 2010-04-21 11:56 DavidHHuan 阅读(564) 评论(0) 编辑
摘要: <?php$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'myJuiDialog','options'=>array('title'=>'Edit the user profile','autoOpen'=>false,'buttons'=>array('ok'=>"js:f...阅读全文
posted @ 2010-04-21 11:56 DavidHHuan 阅读(510) 评论(0) 编辑
共26页: 首页 上一页 16 17 18 19 20 21 22 23 24 下一页 末页