


Interview questions a friend asked when applying for a job at Sina Leju_PHP Tutorial
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){

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

This tutorial demonstrates how to efficiently process XML documents using PHP. XML (eXtensible Markup Language) is a versatile text-based markup language designed for both human readability and machine parsing. It's commonly used for data storage an

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
