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

韦小宝
Release: 2023-03-17 15:38:01
Original
1270 people have browsed it

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()
Copy after login

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

count()
Copy after login

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

echo $arr[0];
Copy after login

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]
Copy after login

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

echo $a{0};
Copy after login

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

Yes

47. Please write the PHP5 permission control modifier

private // 私人的
protected // 保密的
public // 公开的
Copy after login

48 , please write the constructor and destructor of php5

__construct  // 构造函数
__destruct   // 析构函数
Copy after login

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!

Related labels:
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