Initialize Python Array Length Function In Php