Interview questions a friend asked when applying for a job at Sina Leju_PHP Tutorial

WBOY
Release: 2016-07-21 14:55:10
Original
1105 people have browsed it

The following are the written test questions he recalled at that time

1.

1. There is the following HTML:
1) Use js to obtain the ________ method to obtain the object;
2) Use the ________ attribute to obtain the attribute value of the attribute title;
3) Use the ________ method to obtain the attribute sina_title attribute value;
2. The functions for array serialization and deserialization in PHP are ______ and _______ respectively;
3. The difference between rawurlencode and urlencode functions is ____________________;
4. The function for filtering HTML in PHP is _______, and the function for escaping is ____________;
5. Write a regular expression to filter out js scripts in HTML;
6. The meaning of LEFT JOIN in SQL is ______________ ;
If there is a table tl_user that stores student ID and name, and another table tl_score that stores student ID, subject and score (some students do not have test scores), write a sql statement to print out the student's name and the total number of each subject. Results;
7. Write three functions that call system commands;
8. Josn’s function for processing arrays is;
9. The function to determine whether a variable is set in PHP is _______; determine whether it is Empty ones are___________;
10. The difference between error_reporting("E_ALL") and ini_set("display_errors", "on")_________;
11. PHP writes predefined variables that display the client IP_ _______; The one that provides the source URL is __________;
12. The function that converts utf-8 to gbk in php is ___________;
13. The function __________ that splits strings into arrays in php is composed of connection numbers. String is_______;
14. How to use static methods of classes in php_______________________________;

2.
1. What is the reason for the following error: mysql server not go away? (This is probably the case)
2. The difference between mysql’s static tables and dynamic tables, and the difference between MyISAM and InnoDB.
3. $a = 1; $b = & $a;
unset($ a), is $b still 1, why?
unset($b), is $a still 1, why?

3.
1. Write at least three functions, take the suffix of the file name, such as the file '/as/image/bc.jpg', and get jpg or .jpg.
2. Write a function to calculate the relative paths of two files, such as $a = '/a/b/c/d/e.php'; $b = '/a/b/12/34/c. php'; Calculate the phase path of $b relative to $a.
3. Use the binary method (also called the halving search method) to find an element. The object can be an ordered array.
$array = array(1,3,5,9,11,23,45,68,78,95,112,235,452);
function binary($array, $search){

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/364506.htmlTechArticleThe following are the written test questions he recalled at that time. 1. 1. There is the following HTML: img title='aaaa' sina_title= 'bbbb' id='img1' 1) Use js to obtain the ________ method to obtain the object; 2) Use the ________ attribute to obtain the attributes...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template