I was just getting started with php, a newbie. Since I just transferred from asp.net, I have published my personal views on the differences between the two languages. I hope this will help you. I recently switched from asp.net to php, the main direction is Web development, and there are still many differences between the two.
1. compared with. net, php prefers the explanatory language type;
2. in. net, we operate mainly on encapsulated object-class libraries. in php, the objects we operate mainly on are various functions;
3. php programming tools. Net programming environment and database, it is very lightweight; especially the programming environment, both lightweight and flexible;
4. in. net and php, data transmission methods include get and post (The third method is not discussed for the moment); in. net, we use context to obtain data. request ["operation object ID"], context. queryString ["operation object ID"]; in php, we use $ _ get ["operation object ID"] and $ _ post ["operation object ID"] to obtain data.
5. in. net, the way to display data is Response. write ("The content you want to display"); in php, we use echo "the content you want to display ";
6. in. net, we operate mainly on objects and arrays, which can be converted to each other. in. net, the objects we operate on are mainly arrays.