Utils common for php