Keith Devens .com |
Friday, March 19, 2010 | ![]() |
| Premature abstraction is an equally grevious sin as premature optimization. – me | ||
PHPPHP is an HTML-embedded, server-side scripting language. It runs everywhere, and does the same stuff that ASP, JSP, etc. do, but (usually) better. Wikipedia is written in it, Yahoo uses it, and so on. It basically works and doesn't get in my way too much. PHP the language is pretty terrible and inconsistent, but the platform as a whole adds up to making PHP a very good tool.
InconsistenciesI can never remember the argument order of many of the functions in PHP, mostly because they're inconsistent. So, here's a quick reference of the problem functions: Functions that take $haystack, $needle: http://php.net/strpos Functions that take $needle, $haystack: http://php.net/in_array Functions that take $callback, $array: Functions that take $array, $callback: http://php.net/array_walk Code SnippetsHow I do templating in PHP:
<?phpPage last edited: February 19, 2006 (utc) |
IndexA B C D E F G H I J L M N O P R S T U V W X All pagesABC
DEFGHIJLMNOP
RS
T
UVWXGenerated in about 0.041s. (Used 4 db queries) |