WC_Eval_Math_Stack::last
Get last value from stack.
Method of the class: WC_Eval_Math_Stack{}
No Hooks.
Returns
Mixed.
Usage
$WC_Eval_Math_Stack = new WC_Eval_Math_Stack(); $WC_Eval_Math_Stack->last( $n );
- $n(int)
- .
Default:1
WC_Eval_Math_Stack::last() WC Eval Math Stack::last code WC 10.6.2
public function last( $n=1 ) {
$key = $this->count - $n;
return array_key_exists( $key, $this->stack ) ? $this->stack[ $key ] : null;
}