Php-an important learning tool

Source: Internet
Author: User

Learning Website: http://blog.csdn.net/jayxujia123/article/details/5990246

Php-an important learning tool

At the university, people majoring in computer science have learned the data structure of the C language version. The data structure items and algorithms are just a few simple words. At that time, a lot of data will be written in C, in particular, when the boundary conditions are fully considered in special cases, we will find that the expression capability of C is not very good.
PHP is a C-language class library. You can download the source code of PHP under php.net and find that the PHP kernel is Zend engine, which is a function library written in C language, it is used to process underlying function management, memory management, class management, and variable management. In the kernel, they write a lot of extensions, most of which are independent. In terms of operating system, Zend engine is an operating system, and many "Applications" are provided officially, but this "application" is not media play, but MySQL, libxml, and Dom. Of course, you can also develop your own extensions Based on the Zend engine API. If you have time, I will sort out the development experience and share it with you.
PHP is a very practical language. Of course, the efficiency may not be very high, but it is sufficient for general requirements. I don't know whether you have considered it or have thought about the data structure of the PHP version. If you compare the definition of ADT and start writing with PHP, you will find that the data structure questions that previously caused you headaches have been easily changed. For example, if we want to implement a stack, you will find that the array in PHP already has all the functions, and you no longer have to write them, maybe you think array is not pure, and it doesn't matter. You can encapsulate it with a class, and there is another benefit. This stack has no type restrictions, you need to put int, Int, Char, and Char. In other languages, it is very likely that you can use generic and template technologies. As far as we understand the significance of stack, PHP implementation is sufficient. You will find it interesting to use PHP for your previous data structure questions, and you will have a new understanding of the data structure.
PHP focuses on network technology. If you are interested in search engines and have read some search engines written in C ++ or Java, you can simply use PHP to implement one, you will find that this development will be very easy. Of course, your search engine cannot meet the needs of large-scale applications in terms of efficiency, but this allows you to understand the basic concepts of search engines.
In my opinion, PHP is not only a very practical language, but also a good learning tool. It allows you to directly face the nature and thoughts of problems without dealing with things at the language level.

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.