Updated Articles

  1. sgapiStr_Replace(%%search,%%replace,%%subject)

    This is equivalent to str_replace function in PHP. This function looks for %%search inside of %%subject and replaces all %%search values with %%replace. The %%search attribute can be a single value or an array of values. If %%search is ...
  2. sgapiCount(%%array)

    This is the equivalent of the count function in PHP. It returns the number of elements in an array. To see an example or learn more other PHP functions and PHP programming visit PHP Documentation . ...
  3. sgapiStrtotime(%%string,%%time)

    This is equivalent to the strtotime function in PHP. This function takes %%string and converts it to a Unix timestamp. If the optional %%time is given it will convert it relative to %%time. See an example in our Age Verification by Birthd...
  4. sgapiParseURL(%%url, %%component)

    This is equivalent to the parse_url function in PHP. %%component is optional. %%component - Specify one of PHP_URL_SCHEME, PHP_URL_HOST, PHP_URL_PORT, PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or PHP_URL_FRAGMENT to retrieve jus...
  5. sgapiStrToLower(%%string)

    This is equivalent to the strtolower function in PHP. This function returns the given string in all lower case using the PHP function strtolower. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentati...
  6. sgapiDate(%%format,%%time)

    This is equivalent to the date function in PHP. This function converts %%time, a Unix timestamp, into a human readable date and time. %%time is optional and defaults to the current time. Check out the PHP documenation for this function to lea...
  7. sgapiImplode(%%glue, %%pieces)

    This is equivalent to the implode function in PHP. Given an array of %%pieces it will create a string delimited by the %%glue. To see an example or learn more other PHP functions and PHP programming, visit PHP Documentation . ...
  8. sgapiExplode(%%delimiter, %%string, %%limit)

    This is equivalent to the explode function in PHP. Given a %%string it will create an array breaking the string up by %%delimiter. Limit is optional. If set, the returned array will only contain up to %%limit elements. To see an example o...
  9. sgapiPrint_R(%%mixed)

    This is equivalent to the print_r function in PHP. Given any variable sgapiPrint_R will display information about a variable in a way that is readable by humans. Use with %%output to output to the page. Very useful when looking at arrays of data o...
  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...