Home > Backend Development > PHP Tutorial > Tencent php experience

Tencent php experience

WBOY
Release: 2016-08-08 09:21:08
Original
1158 people have browsed it

Since graduation in 2012, I have worked on C# for one year, PHP for two years, and node for a few months. Due to some reasons, I left my job again. I received an interview call from Tencent Interactive Entertainment for PHP. After hurriedly preparing, I went to Tencent's Kexing Science and Technology Park. Go up to the office building.

1. Written test

Most of the test questions are available online, for example:

  • Use the least code to write a function that finds the maximum of 3 values. (min() function)
  • Write a function in php that can traverse a All files and subfolders under the folder.

<span>function</span> my_scandir(<span>$dir</span><span>)  
{  
   </span><span>$files</span> = <span>array</span><span>();  
   </span><span>if</span> ( <span>$handle</span> = <span>opendir</span>(<span>$dir</span><span>) ) { 
      </span><span>while</span> ( (<span>$file</span> = <span>readdir</span>(<span>$handle</span>)) !== <span>false</span><span> ) {  
        </span><span>if</span> ( <span>$file</span> != ".." && <span>$file</span> != "."<span> ) {  
           </span><span>if</span> ( <span>is_dir</span>(<span>$dir</span> . "/" . <span>$file</span><span>) ) {  
             </span><span>$files</span>[<span>$file</span>] = <span>scandir</span>(<span>$dir</span> . "/" . <span>$file</span><span>);  
           }</span><span>else</span><span> {  
             </span><span>$files</span>[] = <span>$file</span><span>;  
          }  
       }  
   }  
   </span><span>closedir</span>(<span>$handle</span><span>);  
   </span><span>return</span><span>$files</span><span>;  
 }  
}

</span><span>$files</span>=my_scandir('E:\wamp\www'<span>);
</span><span>print_r</span>(<span>$files</span>); 
Copy after login
  • Use PHP to implement a two-way queue
  • linux command
  • sql + cookie, connection and difference between sessions
  • There are also some about big data, high concurrency website design Questions

Generally speaking, the written test is not very difficult. If you pass the basics, you should be able to answer the questions

2. On the one side

here mainly asks about the technologies used in the project. The interviewer usually looks at your comparison of those things. For an in-depth understanding, such as what architecture a project uses and what solutions are used for caching, it is recommended to sort out one or two in-depth technologies and better solutions used in this project, as well as what ideas you have for improving this project.

2. Second interview

In the second interview, you will be more inclined to check your comprehensive ability. Generally, you will be asked about your role in the team at that time and your role in the team. Everyone should prepare here before the interview. It is best to have a It's easier to answer questions fluently this way.

2. The three-face interview

The supervisor interview is similar to the two-face interview. It mainly looks at questions such as potential, learning attitude, and breadth of knowledge. Maybe you have too little experience and really don’t know how to answer the best questions.

Personal blog: http://www.yixiong.xyz/

The above introduces Tencent's PHP experience, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.

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