Home  >  Article  >  Backend Development  >  Brief description of PHP entry-level interview questions (5)

Brief description of PHP entry-level interview questions (5)

韦小宝
韦小宝Original
2017-11-17 08:48:391236browse

PHP Junior Interview Questions are for programmers with little experience who are just looking for a job. This provides a lot of help for us to go out for interview, InterviewOfficial meetings often test us, and the interview questions played a big role at this time

41. Check whether a variable is set Is the function? The function that is empty is?

isset() empty()

42. The function that obtains the total number of query result sets is?

count()

43. $arr = array('james', 'tom', 'symfony'); Please print out the value of the first element

echo $arr[0];

44. Please separate the values ​​of the array in question 41 with ',' signs and merge them into string output

echo $arr[0].$arr[1].$arr[2]

46. $a = 'abcdef'; Please take out the value of $a and print out the first letter

echo $a{0};

##46. Can PHP be connected to databases such as sql server/oracle?

Yes

47. Please write the PHP5 permission control modifier

private // 私人的
protected // 保密的
public // 公开的

48 , please write the constructor and destructor of php5

__construct  // 构造函数
__destruct   // 析构函数

Related recommendations:

php Junior Interview Questions Brief Description Questions (3)

php Junior Interview Questions Brief Description Questions (2)

php Junior Interview Questions Brief Description Questions (1)


Don’t be anxious after reading the above interview questions, there are other interview questions, basic things are best Consolidating them all will help us interview and find jobs.



##

The above is the detailed content of Brief description of PHP entry-level interview questions (5). For more information, please follow other related articles on the PHP Chinese website!

Statement:
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