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 .....