一些题目,可以看看
来源:互联网 发布:淘宝流量来源 360搜索 编辑:程序博客网 时间:2024/04/30 14:01
1. Which of the following will not add john to the users array?
1. $users[] = 'john';
2. array_add($users,'john');
3. array_push($users,'john');
4. $users ||= 'john';
2. What's the difference between sort(), asort() and ksort? Under what circumstances would you use each of these?
3. What would the following code print to the browser? Why?
$num = 10;
function multiply(){
$num = $num * 10;
}
multiply();
echo $num;
4. What is the difference between a reference and a regular variable? How do you pass by reference & why would you want to?
5. What functions can you use to add library code to the currently running script?
6. What is the difference between foo() & @foo()?
7. How do you debug a PHP application?
8. What does === do? What's an example of something that will give true for '==', but not '==='?
9. How would you declare a class named “myclass” with no methods or properties?
10. How would you create an object, which is an instance of “myclass”?
11. How do you access and set properties of a class from within the class?
12. What is the difference between include & include_once? include & require?
13. What function would you use to redirect the browser to a new page?
1. redir()
2. header()
3. location()
4. redirect()
14. What function can you use to open a file for reading and writing?
1. fget();
2. file_open();
3. fopen();
4. open_file();
15. What's the difference between mysql_fetch_row() and mysql_fetch_array()?
16. What does the following code do? Explain what's going on there.
$date='08/26/2003';
print ereg_replace(“([0-9]+)/([0-9]+)/([0-9]+)”,2/1/3,$date);
17. Given a line of text $string, how would you write a regular expression to strip all the HTML tags from it?
18. What's the difference between the way PHP and Perl distinguish between arrays and hashes?
19. How can you get round the stateless nature of HTTP using PHP?
20. What does the GD library do?
21. Name a few ways to output (print) a block of HTML code in PHP?
22. Is PHP better than Perl? – Discuss.
- 一些题目,可以看看
- 收集的一些C,C++面试题目,可以看看
- Delphi程序员笔试题目(各位可以看看呵)
- 可以看看
- 可以看看
- 可以看看
- SQL初学者可以看看的一些简单SQL语句
- 一些逻辑题,有空看看 可以锻炼一下逻辑思维
- CNN的一些基本知识,以后有需要可以看看
- EXT TreePanel可以看看
- 80.90可以好好看看
- 可以看看的书籍
- 心情不好 可以看看
- 没事可以看看
- cocos2d初学者可以看看
- 第一次面试 可以看看
- 一些有意思的题目,3题,看看你能不能全部做对?
- 在网上找了一些j2ee的视频教程,有需要的朋友可以看看
- 我的小站
- BASH使用详解
- 一些异常精妙的"SQL"语句
- 编写一个简单的Web Service
- 三种数据库利用SQL语句进行高效果分页
- 一些题目,可以看看
- 算法----乘法连接法散列表
- 深入讲解SQL Server数据库的嵌套子查询
- 没事看看(一)
- 使用SQL视图查出所有的数据库字典
- .Net 中的 Process 应用[调用cmd命令]
- JAVASCRIPT中的一些经典技巧
- 两个表间不存在的insert与存在的update
- ASP欧帝网上商城系统 V1.0