Welcome to PrimitiveType.com!
Most recent articles:
Posted: Jan 26, 2012
This article takes a look at PHP5's Object Oriented Programming (OOP) support for abstraction. Though it's easily possible to script in PHP without paying much attention to this powerful feature, larger projects will benefit from the increased class organization and structure that can be obtained as a result of careful usage of abstract classes and methods. This article assumes you have some...
Posted: Jul 29, 2011
The Samsung Galaxy Apollo is an Android-based smartphone that I bought from Carphone Warehouse in London for £90 (approximately $147 at time of writing). Of course, thatís for the unit alone without a SIM card and not attached to any contract. Itís my first smartphone and I thought Iíd put down my first impressions of it, having owned the phone for 3 days now.
Posted: Feb 3, 2011
When a site has many sections or pages for a category, it can be useful to separate all entries by what letter of the alphabet their initial falls under. For example, you may want to do this in a directory site. It is a simple matter to create 26 HTML <a> tags to link to each page or section, but if you decide to change something about them you'd have to apply the edit to each of the 26...
Posted: Aug 26, 2010
PHP's ternary operator is an operator that works on 3 expressions. It first tests a boolean expression for truth and returns the second expression if true, or the third expression if false. The ternary operator can often be used to replace a simple if-else statement, reducing the number of lines of code in a script or program. Though novices sometimes find it difficult to understand, the...
Featured web development tools: