Custom variables php tracking api

Anyone have real world example related to PHP client API ?? I want to set and track custom variables using PHP client API. Please provide me some example thanks!