• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages

    Usage:

    PrepareParameters("string")

    Example:

    PrepareParameters("This is a test")

    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.

    • Example 1:
      arr = PrepareParameters("This is a test")
      echo arr
      
      Result:
      21:51:36 This,is,a,test
      21:51:37 Script stopped
      
      Example 2:
      arr = PrepareParameters("this is a /test 'with spaces and quotes'")
      echo arr
      
      21:55:17 (5) - this,is,a,/test,with spaces and quotes
      21:55:18 (5) - Script stopped
      
      Example 3:
      arr = PrepareParameters("this is a test /a=\"qqq ww\" s")
      echo arr
      
      Result:
      21:52:40 this,is,a,test,/a=qqq ww,s
      21:52:41 Script stopped


    CategoryFunctions

    PrepareParameters (last edited 2015-04-19 01:56:43 by Inanna)