-1

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!

NDM
  • 6,594
  • 3
  • 36
  • 50
Hashim Al-Arab
  • 168
  • 2
  • 4
  • 11

3 Answers3

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

That's really all you need.

Community
  • 1
  • 1
Michal M
  • 9,046
  • 6
  • 46
  • 63
5

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
NDM
  • 6,594
  • 3
  • 36
  • 50
1

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.
  • 9,396
  • 5
  • 37
  • 62