Differences between php and. net

Source: Internet
Author: User
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.

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.