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.
At work we use mod_fcgid to run php (libapache2-mod-fcgid from Debian to be exact). This makes php nice and fast, but more importantly, it runs each site's php pages as that site's user.
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.
PHP 5 has an exception model similar to that of other programming languages.
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.
What makes good documentation?
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net s earch for in the
The Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is a token that allows access to static , constant , and overridden properties or methods of a class. When referencing these items from outside the class definition, use the name of the class.
The scope of a variable is the context within which it is defined. For the most part all PHP variables only have a single 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!).
Why is $foo[bar] wrong? Always use quotes around a string literal array index.
You don't technically have to, but its good form.
A string is series of characters, where a character is the same as a byte.
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.