Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
What's best for you? What features do you want/need? Best is different for different people. I use BBEdit.
 
I'm a recent convert to TextMate. The learning curve for some of the more advanced stuff can be a little steep, but after a few days it really sped up my workflow. It's got a few issues that bug me but the developer seems really open to suggestions and seems to be constantly seeding updates.
 
2nd vote for TextMate you can work in HTML markup mode and still get excellent syntax coloring for PHP.. or switch to php to take advantage of the macro's and quick commands..
 
I go with Coda too. The code auto completion is great and saves you quite a bit of time.
 
I work as a PHP developer, the only Mac using developer in our firm. I use Coda myself as my main editor, working mostly directly on online files over Codas built in ftp browser.

Now, we also have a couple of "hard core" developers working here (I'm more of an all-rounder), coding mostly in CakePHP, and they swear by ZendStudio on top of Eclipse. I see some advantages, like auto completion also on self declared variables and functions, but I didn't like it, felt bloated and the interface was ugly. But for the regular PC user that might not be an issue... ;)
 
You may want to check out Netbeans as well. I just started using it and it's pretty slick so far.

I found ZendStudio really slow on my Mac (2.4 MBP 4GB RAM)
 
I've been using Coda for a while now.
It's pretty nice! I like the built in FTP access.
Nice when you are editing many websites.
 
i'll add in a vote for TextWrangler (formerly BBedit lite). it is free.

i've also been trying espresso. it isn't bad at all, just more that i had already finished the most recent big project before i got it.

the nice thing about web development is that you really only need a txt editor. (yeah yeah, and images, but i mean for the code) so you just need to find an editor you like. hell, i started using pico through a unix terminal. (not recommended, but still good to know how).

textwrangler
smultron
notepad++ (win only i think)

there are a bunch of free ones out there, give them a shot. 'best' is really a personal choice.
 
I would choose Coda over TextMate. I have both.

If you want a full featured editor, you might try XCode. Don't know if it supports php (auto-complete, etc). It's free. Another full feature editor is Visual SlickEdit. It's a commercial app and it's worth the money if you do this for a living.
 
If you want a full featured editor, you might try XCode. Don't know if it supports php (auto-complete, etc). It's free.
Let me get this straight. You're in the web design and development area, the OP asks for PHP, and you say "Xcode. I don't know if it supports PHP [...]". Wtf is wrong with you, people?

Yes, Xcode does support PHP, if you want to download a 1GB *.dmg and install a 4GB application for the most minimalist PHP editor out there.

I think it's all about your needs. I used CoDA, but I only develop offline, so no need for its advanced features, and the interface is too bloated for my taste. I used Dreamweaver but I've got sick of its bugs, so I switched over to TextMate, which, apart from helping me A LOT in debugging, is also nice and user-friendly. So do some savings, and go buy TextMate.

So to put it simple: CoDA if you use its features and need them enough in order to justify the price, Dreamweaver if you want the most powerful tool (includes Spry -- its own AJAX framework -- powerful WYSIWYG, Live View, and, if you're using the Code View, the syntax guidelines are an awesome asset!), TextMate/TextWrangler if you simply want a powerful Code Editor (with the latter being free).
 
Let me get this straight. You're in the web design and development area, the OP asks for PHP, and you say "Xcode. I don't know if it supports PHP [...]". Wtf is wrong with you, people?

It's been a while since I used XCode and I didn't remember. Hopefully, you won't find anything wrong with that.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.