my function for php