Php Create Class From Variable Resistor