Custom variable tracking

Hi ? Anyone can share some example code of custom variable or custom dimension tracking through PHP client API ?? Thanks a lot in advance!