Quick Search

PHP Traits for Implementing Interfaces

Posted on Aug 13, 2013 | Last Updated Aug 13, 2013

PHP 5.4 introduced traits. Traits are in many ways like code-assisted copy and paste. They are ways to mix code into a class without inheritance. But what are they good for? When should they be used?

Read More

PHP 5.4, trait, interface, abstract, oop

Importing Methods from an unrelated Class in PHP5

Posted on Feb 27, 2005 | Last Updated Aug 13, 2013

Sometimes you need to steal a method from an unrelated class without becoming a child. Here's how.

Read More

PHP5, Class, method, import

Copy and Paste Object Properties in 3ds Max

Posted on Nov 19, 2014 | Last Updated Nov 19, 2014

MAXScript for copying properties from one object to multiple other objects.

Read More

maxscript, copy, paste, property

Unicode Data with PHP 5 and MySQL 4.1

Posted on Nov 11, 2004 | Last Updated Aug 13, 2013

Internationalization is simple with a litlle advanced preparation.

Read More

Unicode, PHP, MySQL

Apache Mod Rewrite and PHP

Posted on Jul 8, 2009 | Last Updated Aug 13, 2013

How to check if Apache's mod_rewrite module is installed on your server directly inside your PHP script.

Read More

apache, mode_rewrite, module, php, apache_get_modules

Compare Values with Arbitrary Comparison Operator

JavaScript for comparing values when the operator to use is variable.
Posted on Dec 21, 2012 | Last Updated Dec 21, 2012

JavaScript function and sample code to dynamically compare two values. Accepts numeric and/or alphanumeric values and does a comparison on them based on a comparison parameter.

Read More

javascript, compare, comparison, dynamic, script, operator, math, numeric, alphanumeric, example, free

PHP strip_tags And Standalone XHTML Elements

Posted on Dec 11, 2006 | Last Updated Nov 11, 2011

A solution to strip_tags() not allowing BR, HR and other standalone XHTML elements.

Read More

php, strip_tags, strip_tags(), xhtml, br, hr, standalone elements, self-closing

Wrong Side of Bed

Posted on Dec 31, 2015 | Last Updated Dec 31, 2015
wrong side of bed cartoon

Cartoon about people with negative outlooks.

Read More

negativity, outlook, grouch, cartoon, comic

URL Fragment not Accessible to PHP

Posted on Dec 11, 2006 | Last Updated Nov 11, 2011

The fragment part of a URL or web address is not sent to servers to be accessible by scripting languages such as PHP.

Read More

url fragment, pound, hash, php
Angry Teapot Level Design Awards