Tencent php experience, Tencent php_PHP tutorial

WBOY
Release: 2016-07-13 09:46:43
Original
1041 people have browsed it

Tencent php experience, Tencent php

Graduated in 2012, one year of C#, 2 years of php, and several months of node. Due to some reasons, I left my job again and received a job from Tencent Interactive Entertainment. PHP interview call, hurriedly prepared, and went to Tencent's Gaodashang office building in Kexing Science and Technology Park.

1. Written test

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

  • Write a function that finds the maximum of 3 values ​​with the least amount of code. (min() function)
  • Write a function in php that can traverse all files and subfolders in a 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 commands
  • The connection and difference between sql cookie and session
  • There are also some issues about big data and high-concurrency website design

In general, the written test is not difficult. You can pass the basic test and you should be able to answer the questions

2. One side

Here we mainly ask about the technologies used in the project. What the interviewer usually looks for is that you have a relatively in-depth understanding of those things, such as what architecture is used in a project and what solution is used for caching. It is recommended to sort out one or two in depth. Below are the technologies and better solutions used in this project, and what ideas you have for improving this project.

2. Two sides

When you get to 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. Here, everyone should prepare before the interview. It is best to have a draft, so you can answer like this relatively fluent.

2. Three sides

The supervisor interview is similar to the second 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/

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1030845.htmlTechArticleTencent PHP experience, Tencent PHP graduated in 12 years till now, one year of C#, 2 years of PHP, several months of node, Due to some reasons, I resigned again. I received a call from Tencent Interactive Entertainment for an interview with PHP. I prepared in a hurry and then...
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