Update sampleApplication.php

make the code compattible with php 5.3