miva_splitstring()

 
Splits a string into chunks in an array, using the separator parameter as the point to split the string. Returns the number of elements in the output array.
Syntax
miva_splitstring( string, sep, output var, flags )
Returns: The number of elements in the output array.
  • string = The input string
  • sep = A single character that will be used to split the string into multiple elements (for example a comma or space)
  • output var = The array of elements returned
  • flags = A comma separated list of any of the following keywords
    trim : removes extra space around the left and right sides of all elements
    ltrim : removes extra space around the left side of all elements
    rtrim : removes extra space around the right side of all elements
    lower : converts all elements to lowercase
    upper : converts all elements to uppercase
    insensitive : searches for the sep input parameter using a case-insensitive search
User Annotations: miva_splitstring