WC_Eval_Math_Stack::last( int $n = 1 )
Get last value from stack.
Description Description
Parameters Parameters
- $n
-
(Optional)
Default value: 1
Return Return
(mixed)
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; }