I've just been transferred to PHP.

Source: Internet
Author: User
So I was just going to do PHP, probably looked at, I think I can not understand PHP as another form of action?


Reply to discussion (solution)

What have you done before?

I used to do Java, recently just looked at PHP do not know so understand right ...

What have you done before?
I used to do Java, recently just looked at PHP do not know how to understand it right.

PHP is not an action. PHP is the same as Java and is a complete language. PHP, of course, also includes action.
PHP's Code architecture is MVC (Model View Controller), which is similar to Java. Where controller is the corresponding Java Action;model is the Class;view is the template (HTML). To summarize, PHP is similar to java. Grammar style is the same, can be said to be C-style. So it's easy to learn.
Unlike Java, this is a different kind of controversy. Personally think that one is PHP compared to Java, is a weakly typed language, that is, dynamic language. In this case, developing the web will be faster. The second difference is that PHP's runtime is not as oo,php as Java's (Java-like virtual machine) API is not packaged, all functions, just like the C language. I personally dislike this point. However, the PHP IDE has a very good hint function.

PHP is not an action. PHP is the same as Java and is a complete language. PHP, of course, also includes action.
PHP's Code architecture is MVC (Model View Controller), which is similar to Java. Where controller is the corresponding Java Action;model is the Class;view is the template (HTML). To summarize, PHP is similar to java. Grammar style is the same, can be said to be C-style. So it's easy to learn.
Unlike Java, this is a different kind of controversy. Personally think that one is PHP compared to Java, is a weakly typed language, that is, dynamic language. In this case, developing the web will be faster. The second difference is that PHP's runtime is not as oo,php as Java's (Java-like virtual machine) API is not packaged, all functions, just like the C language. I personally dislike this point. However, the PHP IDE has a very good hint function.
So what's the way they interact with each other, like I used to do in Java, with the XML configuration between the V layer and the C layer so that you can find the action or the page exactly, but PHP is also through XML

PHP does not have such a configuration. PHP uses a template engine?? A template class?? To pass data into an HTML document. The mainstream template class is smarty, you can see.

PHP does not have such a configuration. PHP uses a template engine?? A template class?? To pass data into an HTML document. The mainstream template class is smarty, you can see.
Well, thank you, hehe .....

  • Related Article

    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.