New Articles

  1. sgapiNumberFormat(%%value, %%decimals, %%dec_point, %%thousands_sep)

    This is equivalent to the number_format function in PHP. This function can be used to format number entries in your survey. Parameters %%value - The number you are formatting. %%decimals - The number of decimals (default is...
  2. sgapiTrim(%%string)

    This is equivalent to the trim function in PHP. This will remove all trailing and preceding whitespace. sgapiChop and sgapiTrim are helpful for anytime you need to pull or display variables with no spaces before or after them. For example, le...
  3. sgapiSqrt(%%number)

    This is equivalent to the sqrt function in PHP. It returns the square root of the value in %%number. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  4. sgapiStrPos(%%haystack,%%needle,%%offset)

    This is equivalent to the strpos function in PHP. This function returns the numeric position of the first occurrence of %%needle string in the %%haystack string. If the optional %%offset parameter is specified, the search will start this number of...
  5. sgapiURLEncode(%%url)

    This is equivalent to the urlencode function in PHP. Given %%url this function will URL encode it making your links safe. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  6. sgapiArray_Multisort(%%array1, %%array2)

    This function is equivalent to the array_multisort function in PHP. This function can be used to sort several arrays at once, or a multi-dimensional array by one or more dimensions. To see an example or learn more other PHP functions and ...
  7. sgapiIs_Null(%%variable)

    This is equivalent to the is_null function in PHP. Returns either TRUE or FALSE if the variable passed is null. To see an example or learn more other PHP functions and PHP programming visit PHP Documentation . ...
  8. sgapiArrayUnique(%%array1)

    This is equivalent to the array_unique function in PHP. Given an array, this function will remove any elements that contain duplicate values and return the deduped array. To see an example or learn more other PHP functions and PHP program...
  9. PHP Functions

    We've included many common PHP functions into our scripting language to allow you to achieve the functionality you desire. To learn more about PHP functions and programming, visit PHP Documentation . ...
  10. sgapiPDFOutput(%%pdf)

    This function returns the output of your pdf. For more info on PHP PDF Creation visit: https://github.com/rospdf/pdf-php/blob/master/readme.pdf Example The below script creates and builds a PDF object, outputs it and adds it as an attachment...