tags:

views:

88

answers:

3

Hello all, i'm a newbie to PHP and i don't like to write my code in notepad-like editors. Is there an editor like VS for PHP?

Also, if you could give me a reference to a good introductory PHP eBook (one that covers simple concepts like declaring and using classes in PHP) that would be great.

Thanks in advance!

+5  A: 
  1. looking for PHP IDE?
  2. Classes
  3. Manual

That's really all you need.

Michal M
+3  A: 

For IDE there are many options. there is VS.PHP (integrates in VS), eclipse PDT, Zend Studio (built on eclipse but not free)

A class can not be declared with accessors in PHP, so a class is declared:

class {}
//and not
public class {}

If you have a class inside a file and you want to use it in another file, you will need to include the file

require_once('MyClass.php');
$myClass = new MyClass(); //note that PHP is not type safe so a variable does not have a type
Nicky De Maeyer
+1  A: 

There are lots of ides for php: netbeans, eclipse, komodo edit, delphi. Notepad++(not ide but has nice syntax highlightings). About classes: you can start here

x2