php
Articles and projects relating to 'php'

Create a Google AdSense WordPress widget in minutes

WordPress

Wordpress tutorial demonstrating how to create a Google Adsense advert widget in just a few minutes.

Converting the first character in a string to lowercase using Python

In a previous PHP post I explained how to convert the first character in a string to lowercase using PHP 5.2.x. In this example I want to demonstrate how its done in Python and briefly discuss the differences in string manipulation between PHP and Python.

Chaining setter methods in PHP

PHP is a web based programming language

PHP5 allows for method chaining as part of the OOP improvements over PHP4. This similar to how jQuery and other languages link methods together by passing the returned value to the chained method. This is brief example of how chaining works with accessor methods

Converting the first character in string to lowercase using PHP 5.2.x

PHP 5.2 does not include a function to convert the first character in a string to lowercase. This tutorial shows you how to do this in PHP 5.2. This has the same effect has the lcfirst function in PHP 5.3

NHSNumberValidator is being used by the University of Nottingham

The University of Nottingham has created an open source program called OpenPseudonymiser which incorporates the NHSNumberValidator. The program is used by (but not limited too) the NHS. It allows users to pseudonymise datasets by creating a digest of one or more columns of a CSV file.