PHP and ASP.NET

To start with the data types, in PHP you don’t need to declare the type of data.
You can just write like this : $number = 1; $name = "Your Name"; etc.
But in C# as it is strongly typed data, you have to declare the type of data. Like : for integer you need to write :
int number = 1;
string name = "Your Name";
etc….

Now everything has its pros and cons. People from strong PHP background will argue that this is absolutely simple to remember. Moreover You don’t need to convert your data from string to integer when you accept data from an user.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s