Function in php - NR IT INSTITUTE