<?php interface Valueable{ const myVariable = 12; } class ValueA implements Valueable{ public function show(){ echo Valueable::myVariable; } } $objValueA = new ValueA(); $objValueA->show(); echo $objValueA::myVariable;
You have javascript disabled. You will not be able to edit any code.