An interview for medium-level php programmers to check whether php developers have reached the medium level, including php and javascript. if you have any need, refer to it. If you are familiar with the following content, it indicates that you have achieved a moderate level of php Development. Generally, you can interview the so-called senior php development engineer. It does not contain css, xml, or network technology. it is just php and javascript. 1: How many years have php been written? What does php name mean? 2: Are you familiar with javascript? What is ajax (Asynchronous javascript and XML) and what is its function? Can you briefly describe the principles of google Maps? 3 is firefox used? Usually there are development-related plug-ins? How to debug javascript? 4: What javascript frameworks are familiar? Have you heard of jquery? What is it? If a p class is "aa bb cc" and the id is "nodesView", how can we get the jquery object of this p? How to obtain the dom object of p directly? How can dom objects be converted to jquery objects? How to convert a dom object to a jquery object a common dom object can be converted to a jquery object through $. For example, $ (document. getElementById ("msg") is a jquery object. you can use the jquery method. Because the jquery object itself is a set. Therefore, if a jquery object is to be converted to a dom object, you must retrieve one of them. Generally, you can retrieve it through indexes. For example: $ ("# msg") [0], $ ("p "). eq (1) [0], $ ("p "). get () [1], $ ("td") [5] are all dom objects. you can use methods in the dom, but you cannot use Jquery methods. The following statements are correct: 8 character strings ("#msg”).html (); $ ("# Msg") [0]. innerHTML; $ ("# msg "). eq (0) [0]. innerHTML; $ ("# msg "). get (0 ). innerHTML;5. about the browser interaction process: what does action mean for a form on a page? What does method mean? If the method is get, how will the data of a form be uploaded to the server? If the script on the server is php, how does php obtain the data of this form? What about post? 6 What are the common methods for connecting php to a database? Familiar with pdo? How can I bind some filter parameters after where in a query? 7 What is the difference between single and double quotation marks in php? If $ a = 1, what is the echo "'$? If $ B = array ('1', '2', '3'), then echo "'$ B [1]'"? How can I write the content that can output the first element? 8. how do I obtain the name (path) of the current script )? $ _ SERVER ['php _ SELF '];9. how can I determine whether an element exists in an array, for example, whether there is a key method in $ a = array? Isset ($ a ['method']), array_key_exists ('method', $)10 object-oriented objects have two aspects: member variables and methods. In a compilation language (such as Java), if you want to call a non-existent method or reference a non-existent member variable, a compile-time error is returned. However, what happens in non-compiled languages, such as PHP? Method calls in PHP work like this. First, the PHP interpreter looks for methods on the class. If a method exists, PHP calls it. If not, call the magic method _ call in the class (if this method exists ). If _ call fails, the parent class method is called, and so on. The magic method has a specific name. The PHP interpreter searches for the magic method at a specific point in script execution. The most common magic method is the constructor called when an object was created. The _ call method has two parameters: the name of the requested method and the method parameter. If the created _ call method accepts these two parameters, execute a function, and return TRUE, then the code that calls this object will never know the difference between the methods processed by the code method and the _ call mechanism. In this way, you can create such an object, that is, dynamically simulate situations where there are countless methods. In addition to the _ call method, other magic methods, including _ get and _ set, call them because they reference nonexistent instance variables. With this concept in mind, you can begin to write a dynamic database category class that can adapt to any table. 11 What is mvc? What are the advantages and disadvantages? Are you familiar with php frameworks? Familiar with php templates? Smarty! 12 How many well-known php cms can be said? 13 How many linux releases are mentioned? Which of the following is the most common? Why do you like to use this release? What is a package management tool? |