WC_Eval_Math_Stack::last( int $n = 1 )

Get last value from stack.


Description Description


Parameters Parameters

$n

(Optional)

Default value: 1


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: includes/libraries/class-wc-eval-math.php

		public function last( $n=1 ) {
			$key = $this->count - $n;
			return array_key_exists( $key, $this->stack ) ? $this->stack[ $key ] : null;
		}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.