fixed correct syntax in php functions