New snippet to ease the data-type handling in PHP.