I recently switched from asp.net to php. My main focus is web development. I feel that there are still many differences between the two.
1. Compared to .net, PHP is more inclined to interpret language type;
2. In .net, we mainly operate encapsulated object-class libraries; In PHP, the main objects we operate are various functions;
3. PHP programming tools are relative to. net's programming environment and database are very, very lightweight; especially the programming environment, which is both lightweight and very flexible;
4. In .net and php, the methods of data transfer include get and post (the third type will not be discussed for now); in .net, we use context.Request["ID of the operation object"] and context.QueryString["ID of the operation object"] to obtain data; in PHP, We use $_get["ID of the operation object"] and $_post["ID of the operation object"] to obtain data;
5. In .net, the way to display data is Response.Write ("What you want to display"); In php, we use echo "What you want to display";
6. In .net, we mainly operate objects and arrays. can be converted into each other; in .net, the objects we operate are mainly arrays.
The above is a brief discussion of the difference between php and .net_php basic content. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!