Php Get Attribute From Array Python Initialize Empty