php面试题_雅虎.doc

上传人:豆**** 文档编号:33571348 上传时间:2022-08-11 格式:DOC 页数:3 大小:16.50KB
返回 下载 相关 举报
php面试题_雅虎.doc_第1页
第1页 / 共3页
php面试题_雅虎.doc_第2页
第2页 / 共3页
点击查看更多>>
资源描述

《php面试题_雅虎.doc》由会员分享,可在线阅读,更多相关《php面试题_雅虎.doc(3页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、【公司面试题之:Yahoo! PHP 笔试题】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. Whats the difference between sort(), asort() and ksort? Under what circumstances would you use each of these?3

2、. 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 a

3、dd 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? Whats 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?1

4、0. 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? 复制内容到剪贴板

5、代码: 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. Whats the difference between mysql_fetch_row() and mysql_fetch_array()?16. What does the following code d

6、o? Explain whats 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. Whats 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 TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com