Python Push Pop Array Php Functions Date