<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>PrepareParameters</title><revhistory><revision><revnumber>1</revnumber><date>2015-04-19 01:56:43</date><authorinitials>Inanna</authorinitials></revision></revhistory></articleinfo><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para>Usage: </para></entry><entry colsep="1" rowsep="1"><para>PrepareParameters(&quot;string&quot;) </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>Example: </para></entry><entry colsep="1" rowsep="1"><para>PrepareParameters(&quot;This is a test&quot;) </para></entry></row></tbody></tgroup></informaltable><para>This function will convert a string into an array of parameters. It will split any non-whitespace character, and can handle quotes and other punctuation. </para><itemizedlist><listitem override="none"><screen><![CDATA[Example 1:
arr = PrepareParameters("This is a test")
echo arr
]]><![CDATA[
Result:
21:51:36 This,is,a,test
21:51:37 Script stopped
]]><![CDATA[
Example 2:
arr = PrepareParameters("this is a /test 'with spaces and quotes'")
echo arr
]]><![CDATA[
21:55:17 (5) - this,is,a,/test,with spaces and quotes
21:55:18 (5) - Script stopped
]]><![CDATA[
Example 3:
arr = PrepareParameters("this is a test /a=\"qqq ww\" s")
echo arr
]]><![CDATA[
Result:
21:52:40 this,is,a,test,/a=qqq ww,s
21:52:41 Script stopped]]></screen></listitem></itemizedlist><!--rule (<hr>) is not applicable to DocBook--><para> <ulink url="http://guide.neatportal.com/wiki/PrepareParameters/wiki/CategoryFunctions#">CategoryFunctions</ulink> </para></article>