New Articles

  1. sgapiPow(%%base,%%power)

    This is equivalent to the pow function in PHP. It returns the value of %%base raised to the power of %%power. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  2. sgapiLog(%%number,%%base=10)

    This is equivalent to the log function in PHP. Returns the log of %%number. If the optional %%base parameter is specified, log() returns logbase %%number, otherwise log() returns the natural logarithm of %%number. To see an example or lea...
  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. sgapiRound(%%number,%%decimal)

    This is equivalent to the round function in PHP. Returns the %%number rounded to the nearest whole number by default. If the optional %%decimal is also included, it defines the number of decimal positions to include. To see an example or ...
  5. sgapiRand(%%min, %%max)

    This is equivalent to the mt_rand function in PHP. It generates a random number (typically 9 or 10 digits long). If the optional %%min and %%max integers are specified, it will generate a number between %%min and %%max instead.  To see an...
  6. 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 . ...
  7. sgapiCurrentPageSKU()

    This function will return the sku of the current page. Example The below example outputs the current page sku to the page. %%output .= sgapiCurrentPageSKU();
  8. sgapiCurrentPageTitle()

    This function will return the title of the current page. Example The below example outputs the current page title to the page. Check it out in an Example Survey %%output .= sgapiCurrentPageTitle(); The output would ...
  9. 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 ...
  10. sgapiASort(%%array, %%flag)

    This is equivalent to the asort function in PHP. This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual...