Home > php教程 > php手册 > body text

A brief discussion on the difference between php and .net_php basics

PHP中文网
Release: 2016-05-16 09:00:00
Original
2781 people have browsed it

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)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!