全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
【公司面试题之: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. 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? 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?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. Whats the difference between mysql_fetch_row() and mysql_fetch_array()?16. What does the following code do? 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
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 体育经纪人工艺作业技术规程
- 纺织染色机操作工岗位现场作业技术规程
- 潜水专家高级面试实战集
- 海油面试专业知识重点突破
- 县级AI改写师面试技巧
- 浮选药剂工岗位现场作业技术规程
- 地质调查员安全技术规程
- 应急培训讲师手册
- 遥感碳汇监测师面试宝典
- 碳排放权定价机制分析
- 哈尔滨牌匾管理办法
- 美术班安全管理管理制度
- 重症创伤的评估与ICU管理
- 煤矿顶板事故专项风险辨识报告
- 机场运行服务与管理专业教学标准(高等职业教育专科)2025修订
- 2025至2030中国儿科医院行业产业运行态势及投资规划深度研究报告
- 穿越周期 局部突围-2024年乳品市场回顾报告
- 关键岗位培训管理制度
- 血栓性血小板减少性紫癜的临床护理
- 2025年团员身份确认入团考试试题及答案
- 《数字的奇妙之旅:课件中的数学世界》
评论
0/150
提交评论