I just switched to PHP.

Source: Internet
Author: User
I just switched to PHP. so I just switched to PHP. after a rough look, I thought, can I understand PHP as another form of action?


Reply to discussion (solution)

What have you done before?

I used to work in java. I recently looked at PHP and I don't know how to understand it, right...

What have you done before?
I used to work in java. I recently looked at PHP and I don't know how to understand it ..

Php is not an action. Php is the same as java and a complete language. Php also includes action.
The php code architecture is MVC (model view controller), which is similar to java. The controller corresponds to the action in java, the model is the class, and the view is the template (html ). All in all, php is similar to java. The syntax style is the same. it can be said that all are C-style. Therefore, it is easy to learn.
The difference with java is different. I personally think that php is a weak type language than java, that is, dynamic language. In this way, web development will be faster. The second difference is that the php runtime library is not as OO as java, and the APIs of the php engine (equivalent to the java virtual machine) are not packaged, all of which are functions, just like the C language. I personally dislike this. However, php IDE provides excellent prompt functions.

Php is not an action. Php is the same as java and a complete language. Php also includes action.
The php code architecture is MVC (model view controller), which is similar to java. The controller corresponds to the action in java, the model is the class, and the view is the template (html ). All in all, php is similar to java. The syntax style is the same. it can be said that all are C-style. Therefore, it is easy to learn.
The difference with java is different. I personally think that php is a weak type language than java, that is, dynamic language. In this way, web development will be faster. The second difference is that the php runtime library is not as OO as java, and the APIs of the php engine (equivalent to the java virtual machine) are not packaged, all of which are functions, just like the C language. I personally dislike this. However, php IDE provides excellent prompt functions.
In this case, how does one interact with each other, for example, when I used java, the xml configuration between layer V and layer C can be used to locate the action or page accurately. but does PHP also use xml?

Php does not have such configuration. Php uses the template engine ?? A template class ?? To pass data into HTML documents. The mainstream template class is smarty.

Php does not have such configuration. Php uses the template engine ?? A template class ?? To pass data into HTML documents. The mainstream template class is smarty.
Well, thank you .....

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.