WordPress at Your Fingertips
function is not described

WC_Eval_Math_Stack::last() public WC 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 5.8.0

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