New Articles

  1. sgapiSort(%%array, %%flag)

    This is equivalent to the sort function in PHP. This function sorts an array. Elements will be arranged from lowest to highest when this function has completed. The %%flag parameter defaults to "SORT_REGULAR". See the PHP documentation to lea...
  2. sgapiArray_Flip(%%array1)

    This is equivalent to the array_flip function in PHP. Given an array, this function will exchange an element's key with that element's value and return the resulting array. To see an example or learn more other PHP functions and PHP progr...
  3. 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...
  4. sgapiArrayMerge(%%array1,%%array2)

    This is equivalent to the array_merge function in PHP. Given two arrays this function will append the elements of %%array2 to the end of %%array1 and return combined elements (the array is reindexed). To see an example or learn more other...
  5. sgapiArray_Diff(%%array1,%%array2)

    This is the equivalent to the array_diff function in PHP. Given two arrays this function will compare %%array2 against %%array1 and return an array of values that are present in %%array1 but not present in %%array2. To see an example or lea...
  6. sgapiArray_Pop(%%array)

    This is the equivalent of the array_pop function in PHP. Given an array this function will return the last element of the array and remove that element from the array itself. To see an example or learn more other PHP functions and PHP progr...
  7. sgapiShuffle(%%array)

    This is equivalent to the shuffle function in PHP. Given an array this function will randomly reorder the array. It will evaluate as true on success and false on failure. To see an example or learn more other PHP functions and PHP program...
  8. 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...
  9. 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...
  10. 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 . ...