- 1、本文档共20页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
初级程序员PHP面试题(国外英文资料)
初级程序员PHP面试题(国外英文资料)
PHP interview questions and answers (original) collection
Basic questions:
What is the difference between get and post submissions in the form?
A: get is the sending request HTTP protocol that is received by the url parameter passing, and post is the entity data that can be submitted in a large amount of information through the form.
What is the difference between a session and a cookie?
Answer: session: the global unique variable that stores the users access, stored in the location of the directory (session_dir) specified in the directory on the server
Cookie: used to store a continuous access page, stored on the client side, stored in a Temp directory that is stored in user WIN.
Both can be set by time
What is the transaction in the database?
A: transaction is an ordered set of database operations as a unit. If all of the operations in the group are successful, then the transaction is considered successful, even if only one operation fails and the transaction is unsuccessful. If all the operations are done,
The transaction commits, and its changes will act on all other database processes. If an operation fails, the transaction will be rolled back and the effect of all the operations of the transaction will be canceled.
Brief introduction:
To print out the previous day in PHP, the format is 2006-5-10 22:21:21 (2)
A: echo date ( Y - m-d H: I: s, strtotime ( 1 days));
Echo (), print (), print_r () (3 points)
A: echo is a PHP statement, print and print_r are functions, and the statement has no return value, and the function can have a return value (even if it doesnt work).
Print () can only print out the values of simple type variables (such as int, string)
Print_r () can print out the values of the complex type variables (as in groups, objects)
Echo prints one or more strings
The ability to separate HTML from PHP (1 point)
A: Smarty, Dwoo, TinyButStrong, Template Lite, Savant, phemplate, XTemplate
Which tools are used for version control? (1)
A: C
文档评论(0)