Php Create Class From Array Python Definition W3schools