1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Asterisk Project : Asterisk 13 Function_SHIFT</title>
- <link rel="stylesheet" href="styles/site.css" type="text/css" />
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- </head>
- <body class="theme-default aui-theme-default">
- <div id="page">
- <div id="main" class="aui-page-panel">
- <div id="main-header">
- <div id="breadcrumb-section">
- <ol id="breadcrumbs">
- <li class="first">
- <span><a href="index.html">Asterisk Project</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-Dialplan-Functions_29394287.html">Asterisk 13 Dialplan Functions</a></span>
- </li>
- </ol>
- </div>
- <h1 id="title-heading" class="pagetitle">
- <span id="title-text">
- Asterisk Project : Asterisk 13 Function_SHIFT
- </span>
- </h1>
- </div>
- <div id="content" class="view">
- <div class="page-metadata">
-
-
-
-
-
-
-
- Created by <span class='author'> wikibot</span> on Aug 08, 2014
- </div>
- <div id="main-content" class="wiki-content group">
- <h1 id="Asterisk13Function_SHIFT-SHIFT()">SHIFT()</h1>
- <h3 id="Asterisk13Function_SHIFT-Synopsis">Synopsis</h3>
- <p>Removes and returns the first item off of a variable containing delimited text</p>
- <h3 id="Asterisk13Function_SHIFT-Description">Description</h3>
- <p>Example:</p>
- <p>exten => s,1,Set(array=one,two,three)</p>
- <p>exten => s,n,While($["${SET(var=${SHIFT(array)})}" != ""])</p>
- <p>exten => s,n,NoOp(var is ${var})</p>
- <p>exten => s,n,EndWhile</p>
- <p>This would iterate over each value in array, left to right, and would result in NoOp(var is one), NoOp(var is two), and NoOp(var is three) being executed.</p>
- <h3 id="Asterisk13Function_SHIFT-Syntax">Syntax</h3>
- <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
- <pre>SHIFT(varname[,delimiter])</pre>
- </div></div>
- <h5 id="Asterisk13Function_SHIFT-Arguments">Arguments</h5>
- <ul>
- <li><code>varname</code></li>
- <li><code>delimiter</code></li>
- </ul>
- <h3 id="Asterisk13Function_SHIFT-SeeAlso">See Also</h3>
- <h3 id="Asterisk13Function_SHIFT-ImportVersion">Import Version</h3>
- <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
- </div>
-
-
- </div> </div>
- <div id="footer">
- <section class="footer-body">
- <p>Document generated by Confluence on Aug 11, 2014 13:48</p>
- </section>
- </div>
- </div> </body>
- </html>
|