Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Going from C# to php [closed]

Tags:

c#

php

I'm going to have to learn php soon, because I need it for a new job. Up until now, i've always programmed in C#. Are there things I should know about php that are strange or different from a C# perspective? Things to look out for?

like image 465
Jouke van der Maas Avatar asked Aug 16 '10 07:08

Jouke van der Maas


People also ask

Is it hard to go from C to C++?

Switching from C to C++ can be both easy, as there are many similarities between the two languages, and hard, as there are many differences that require forgetting what you know and habits that you may have developed from programming in C.

Why is C still popular?

The C programming language is so popular because it is known as the mother of all programming languages. This language is widely flexible to use memory management. C is the best option for system level programming language.

Is C used anymore?

Despite the prevalence of higher-level languages, C continues to empower the world. The following are some of the systems that are used by millions and are programmed in the C language.

Is C easy for beginners?

And I would say it's not the easiest language, because C is a rather low level programming language. Today, C is widely used in embedded devices, and it powers most of the Internet servers, which are built using Linux. The Linux kernel is built using C, and this also means that C powers the core of all Android devices.


2 Answers

They’re different programming languages. But you can do with php most things, that you can do with C#. I think they`re different in next ways:

  • PHP is more simplier than C#.
  • C# is full OOP language, but PHP is not.
  • .NET library of classes is very big and you have all that you need. If you are using PHP, you can download classes from pear at official php site or from zend framework official site.
  • If you create web application in C# you use ASP.NET MVC 2 and in PHP you can use less powerfull frameworks: symfony, zend framework, yii, kohana.

You will feel very limited with PHP after C#.

Books to read:

  • PHP 5 for proffessionals.
  • PHP Design patterns.

Current version of PHP is 5.3.

like image 175
Dmytro Krasun Avatar answered Oct 16 '22 00:10

Dmytro Krasun


completely different, but a lot easier! Grab some PHP books: PHP MySQL books

Bookmark php.net/manual/en/, Join an IRC: irc.phpfreaks.com, Learn a framework alongside: CodeIgniter, Get a WAMP/LAMP setup, start on a project asap and generally have fun.

:) Welcome to PHP

like image 20
abel Avatar answered Oct 16 '22 01:10

abel