Asterisk Project : Asterisk 10 Function_POP This page last changed on Oct 14, 2011 by wikibot. # POP() ### Synopsis Removes and returns the last item off of a variable containing delimited text ### Description Example: exten => s,1,Set(array=one,two,three) exten => s,n,While($["$\{SET(var=$\{POP(array)\})\}" != ""]) exten => s,n,NoOp(var is ${var}) exten => s,n,EndWhile This would iterate over each value in array, right to left, and would result in NoOp(var is three), NoOp(var is two), and NoOp(var is one) being executed. ### Syntax
    POP(varname[,delimiter])
##### Arguments `varname` `delimiter` ### See Also ### Import Version This documentation was imported from Asterisk version SVN-branch-10-r340810.

Document generated by Confluence on Oct 14, 2011 13:25