喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 喜悦证交所 | 帮助

RSS 订阅当前论坛  

[北京]代朋友公司招聘PHP高级程序员多名

上一主题 下一主题
     
标题: [讨论] 勇敢的发一份面试题!  
 
hnscdfly
注册会员
Rank: 2
一般会员



UID 25148
精华 0
积分 55
帖子 51
金钱 55 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2003-12-11
状态 离线
勇敢的发一份面试题!

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

<?php
1. $users
[] = ‘john’;

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

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

    
4. $users ||= ‘john’;
?>
2. What’s the difference between sort(), assort() and ksort? Under what circumstances would you use each of these?

3. What would the following code print to the browser? Why?

<?php
$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.

<?php
$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.




主页http://www.phpxe.com
博客http://blog.phpxe.com
2008-4-10 09:27 AM#1
查看资料  访问主页  Blog  发短消息  顶部
 
psdshow
金牌会员
Rank: 6Rank: 6
论坛元老



UID 30908
精华 0
积分 1767
帖子 1369
金钱 1767 喜悦币
威望 0
人脉 0
阅读权限 70
注册 2004-9-6
来自 永州-廣州
状态 离线
[推荐阅读] 精通xHtml、DIV+CSS、JS熟悉PHP的进,加入开发团队,在家工作!
收 藏



以下AD由PHPX赞助:
广州梦莎五金饰品厂 东莞恒隆五金饰品厂 承接php私活
2008-4-10 10:14 AM#2
查看资料  访问主页  Blog  发短消息  QQ  顶部
 
jskyoo
乞丐




UID 114318
精华 0
积分 -147
帖子 45
金钱 -147 喜悦币
威望 0
人脉 0
阅读权限 1
注册 2008-3-14
状态 离线
[推荐阅读] 各位大大,js写的拖动层的设置怎么保存到mysql数据库里啊?
顶了```

[ 本帖最后由 LuckLrj 于 2008-4-10 10:40 AM 编辑 ]




域名注册 虚拟主机、服务器租用 托管 Q:78552707
2008-4-10 10:34 AM#3
查看资料  发短消息  顶部
 
aeolus
注册会员
Rank: 2


UID 110669
精华 0
积分 74
帖子 84
金钱 74 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2008-2-19
状态 离线
[推荐阅读] 头大了!问题一个接一个!谁来帮帮我!
樓主好人!
這年頭面試題都是EN的嗎?
2008-4-10 11:31 AM#4
查看资料  发短消息  顶部
 
开花石头 (南冥洗)
版主
Rank: 7Rank: 7Rank: 7
努力把内裤穿在外面


UID 7949
精华 12
积分 25600
帖子 4458
金钱 25480 喜悦币
威望 120
人脉 0
阅读权限 100
注册 2001-4-19
状态 在线
[推荐阅读] 请问有开源的PHP安装程序吗?
我是英盲



2008-4-10 12:22 PM#5
查看资料  访问主页  Blog  发短消息  QQ  ICQ 状态  顶部
 
unspace (未知空间)
版主
Rank: 7Rank: 7Rank: 7
百万富翁


UID 67567
精华 0
积分 48891
帖子 5106
金钱 47795 喜悦币
威望 0
人脉 1096
阅读权限 100
注册 2005-12-28
来自 吉林
状态 离线
[推荐阅读] 一个向左赋值的问题!
貌似网上流传的雅虎面试题



7月1日起,北京市低保、最低工资标准、失业保险、工伤保险、基本养老金5项社会保障标准均将全部上调。其中,最低工资标准增加70元,提高到800元。
2008-4-10 12:45 PM#6
查看资料  访问主页  Blog  发短消息  顶部
 
xieaotian (老老仙)
版主
Rank: 7Rank: 7Rank: 7


UID 82205
精华 1
积分 1252
帖子 1481
金钱 1252 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2006-10-26
来自 老老神仙部落
状态 离线
[推荐阅读] 福建电信100M独享/广东电信百M独享带宽服务器租用QQ445676667
汗哪,多亏没去雅虎~



http://www.okpython.com
让中国的python发展的更快。
2008-4-10 02:15 PM#7
查看资料  访问主页  Blog  发短消息  QQ  顶部
 
剑枫 (雪花)
论坛元老
Rank: 8Rank: 8
欧玛嘎


UID 26144
精华 1
积分 4849
帖子 1721
金钱 4839 喜悦币
威望 10
人脉 0
阅读权限 90
注册 2004-2-14
来自 山东郓城
状态 离线
[推荐阅读] 相关联下拉菜单的功能需求,求助高手!
不懂英文.......



在场外支持奥运.....
2008-4-10 04:17 PM#8
查看资料  访问主页  发短消息  QQ  顶部
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 




Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.024858 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP