News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
PHP Gotchas!
April 24, 2006 @ 12:49:58

The Zend Developer Zone has a new post for those out there struggling with the small stuff. You've got the language down and you're learning the syntax, but there's still a few things that elude your grasp. If this is you, check out their list of "PHP Gotchas" to see if your problem is on there.

Call them obscure, call them pointless, call them "newb mistakes." Whatever you call them, you've more than likely been tripped up at some point in your PHP coding journey by seemingly odd or illogical behaviors of the language. With PHP being a loosely-typed language, funny things are bound to happen.

PHP is an easy language to pick up for the casual coder--things should "just work." But not everyone comes into PHP development with a strong programming background, so here are some charming examples of ways PHP can trip you up if you aren't careful. Put on your thinking caps--here comes the science!

Included in their list of common problems for budding PHP developers are things like finding a "needle" in a string "haystack", working with constants, using and/or, and the __toString functionality in PHP5.

0 comments voice your opinion now!
gotchas strings constants tostring logic math gotchas strings constants tostring logic math


blog comments powered by Disqus

Similar Posts

NetTuts.com: Evolving Toward a Persistence Layer

Zend Developer Zone: PHP Gotchas!

DevShed: Working with Multiple Template Files to Separate Logic from Presentation (Part 3)

phpRiot.com: Application logic versus template logic

Paul Jones' Blog: TypeKey and Big-Number Math: Yay Wez!


Community Events





Don't see your event here?
Let us know!


framework tool podcast composer introduction community library voicesoftheelephpant interview version release security laravel symfony language opinion series package update install

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework