Update codes for PHP syntax