WC_Eval_Math_Stack::last()publicWC 1.0

Get last value from stack.

{} It's a method of the class: WC_Eval_Math_Stack{}

No Hooks.

Return

Mixed.

Usage

$WC_Eval_Math_Stack = new WC_Eval_Math_Stack();
$WC_Eval_Math_Stack->last( $n );
$n(int)
-
Default: 1

Code of WC_Eval_Math_Stack::last() WC 6.8.2

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