
PHP Language
Get flash to fully experience Pearltrees
This "tip" is for those who receive the error "Object of class X could not be converted to string" when __toString() is not possible, and it is not a choice to process or not - for example when received via debug_backtrace(). I use to have a logging function called LogEnter() and another called LogExit() that I use to call at every function when intensively debugging.
Magic Methods
mod_fcgid and timeouts | Where The Bits Roam
XDebug
Xdebug provides an interface for debugger clients that interact with running PHP scripts. This section explains how to set-up PHP and Xdebug to allow this, and introduces a few clients.Seven habits for writing secure PHP applications
When it comes to security, remember that in addition to actual platform and operating system security issues, you need to ensure that you write your application to be secure.downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net s earch for in the
PHP Manual
Scope Resolution Operator (::)
Variable scope
The differance of float and double dates back to a FORTRAN standard. In FORTRAN Variables aren't as loosly written as in PHP and you had to define variable types(OH NOES!).
Types
Arrays
Why is $foo[bar] wrong? Always use quotes around a string literal array index.You don't technically have to, but its good form.
How to Clear an Array Completely?
A string is series of characters, where a character is the same as a byte.
Strings
If you want a function to return all text in a string up to the Nth occurrence of a substring, try the below function. Works in PHP >= 5.

