Is it necessary to study PHP source code in depth? What are the good ways?

Source: Internet
Author: User
Keywords Php
Tags php books
I went to a company two days ago, first asked if I have read the source code, how to optimize the performance of PHP, and so on, and I have been reading by self-study. The current level is the market to sell PHP books, most of the knowledge points are understood, but the core of the optimization methods do not know much, seek guidance!

Reply content:

The interviewer interviewed you, not asking you to read the source code, but to see if you are familiar with PHP, so understand some of the bottom-level implementation (it must be said that some surface phenomena do need to have some understanding of the bottom).

I personally feel that, and do not need to read the source code, just need to know some common issue on the line, such as the PHP array why not follow the index traversal, and so on.

My blog often has this kind of article to share, welcome the attention: http://www. laruence.com/

Thanks I am also learning php kernel-related things, "extending and Embedding PHP" is good, although now PHP5.4 will release the official version, but this book is still very valuable reference.
The other is to see the PHP source code, starting from the development of PHP extension, I think that under the Linux development is much simpler and faster.
The most important thing is interest, enjoy the learning and exploration process. Optimizing performance does not necessarily have to be familiar with source code. Know the principle of PHP and some common library ah function ah what complexity, it can be. In fact, the most important thing is the program itself algorithm, logic performance optimization.
Of course, if your basic skills are good enough, don't look at the code, you can probably guess how PHP is implemented internally and how to optimize it.
If you have a strong interest, look. Can be of great help to the technology. Most optimizations should not be optimized for the language level, and it is necessary to know a little about the implementation. I looked all over the first floor of the blog of Bird Brother. Look at a book called Deep into the PHP kernel of the ebook OK just optimization, did not ask you will not write extensions!
General optimization, / http phpe.net/category/tech/ The bottom two posts on this list may help you!


If you want to write the extension, you slowly boil it
The requirements of the source code level is a bit high oh, it is estimated that there should be large companies. Be proficient in C, and be familiar with Zend. See PHP source code for the understanding of PHP is also helpful, recommended: http://www. php-internal.com/book/
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.