Update sample.php for PHP 5.4