Skip to content
Abdul Rehman edited this page Mar 6, 2023 · 5 revisions
<title>Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="icon" href="images/favicon.ico"/>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/base.css">
        <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="css/template.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
            <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
    <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
    <script src="js/search.js"></script>
    <script defer src="js/searchIndex.js"></script>
</head>
Search for
<nav class="phpdocumentor-topnav">
<ul class="phpdocumentor-topnav__menu">
    </ul>
<main class="phpdocumentor">
    <div class="phpdocumentor-section">
        <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
Menu

Packages

                                <h4 class="phpdocumentor-sidebar__root-namespace">
<a href="packages/Application.html" class="">Application</a>
                    </section>
        
<section class="phpdocumentor-sidebar__category">
    <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
            <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
    <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
    <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
</section>

<section class="phpdocumentor-sidebar__category">
    <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
    <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
</section>
        <div class="phpdocumentor-column -eight phpdocumentor-content">
                <h2>Documentation</h2>


<h3 id="packages">
Packages
<a href="#packages" class="headerlink"><i class="fas fa-link"></i></a>
uclib
Application

Interfaces, Classes, Traits and Enums

        <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/clsXml-Array.html"><abbr title="\clsXml_Array">clsXml_Array</abbr></a></dt>
    <dd>This is the function that has been used for xml conversion to array.</dd>
        <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/FRIENDLY-GUID-TYPE.html"><abbr title="\FRIENDLY_GUID_TYPE">FRIENDLY_GUID_TYPE</abbr></a></dt>
    <dd></dd>
        <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/clsVisiblity.html"><abbr title="\clsVisiblity">clsVisiblity</abbr></a></dt>
    <dd>This class is used for cls visibility.</dd>
        <dt class="phpdocumentor-table-of-contents__entry -class"><a href="classes/EncryptionManager.html"><abbr title="\EncryptionManager">EncryptionManager</abbr></a></dt>
    <dd>This class is used for encryption decryption.</dd>


</dl>

Table of Contents

isValidEmail()  : mixed
Check if an email address is valid.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_checkPhoneNo">checkPhoneNo()</a>
<span>
                            &nbsp;: int    </span>
Check if the given string is a valid phone number.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_sanitizeEmail">sanitizeEmail()</a>
<span>
                            &nbsp;: string    </span>
Sanitize an email address.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_sanitizeString">sanitizeString()</a>
<span>
                            &nbsp;: string    </span>
Sanitizes a string by removing multiple spaces, stripping tags, and escaping special characters.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_gen_uuid">gen_uuid()</a>
<span>
                            &nbsp;: string    </span>
Generates a UUID / unique ID of specified length
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getUserRequest">getUserRequest()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Retrieves user request data from $_GET and $_POST.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_datediff">datediff()</a>
<span>
                            &nbsp;: string    </span>
It is the function that has been to find difference between two dates in diffrent units like month,year and days.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_strIntoComma">strIntoComma()</a>
<span>
                            &nbsp;: string    </span>
Converts a string into a comma-separated list of values, removing extra spaces and newlines.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getDatesListFromRange">getDatesListFromRange()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Generates a list of dates between a given start and end date.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_xml2array">xml2array()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Convert an XML string to a nested array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_xmltoArray">xmltoArray()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This function that is used to convert xml into array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array2xml">array2xml()</a>
<span>
                            &nbsp;: string    </span>
This function has been used to convert array to xml.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_short_string">short_string()</a>
<span>
                            &nbsp;: string    </span>
Shorten a string to a specified length.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findtext">findtext()</a>
<span>
                            &nbsp;: string    </span>
Find a substring within a string between two given substrings and update the starting index.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findtextnew">findtextnew()</a>
<span>
                            &nbsp;: string    </span>
This function has been used to find text (new function : to find between substrings).
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getAttribute">getAttribute()</a>
<span>
                            &nbsp;: string    </span>
Extracts the value of the specified attribute from an HTML/XML tag.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_removecomments">removecomments()</a>
<span>
                            &nbsp;: string    </span>
Remove comments and specific tags from a string.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_removephrase">removephrase()</a>
<span>
                            &nbsp;: string    </span>
Removes a specified phrase from a given string.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getSmartyTemplate">getSmartyTemplate()</a>
<span>
                            &nbsp;: object    </span>
Find and get the Smarty template or retrieves an instance of the Smarty template engine with appropriate settings and assigns common global variables.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_strtodate">strtodate()</a>
<span>
                            &nbsp;: string    </span>
Converts a date string to the format 'mm/dd/yyyy'.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_datetostr">datetostr()</a>
<span>
                            &nbsp;: string    </span>
Converts a date string in the format MM/DD/YYYY to a string in the format YYYYMMDD000000.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_dayafter">dayafter()</a>
<span>
                            &nbsp;: string    </span>
This function has been used to convert date.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_f_random">f_random()</a>
<span>
                            &nbsp;: string    </span>
Generates a random string with specified length and type.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_redirect_header">redirect_header()</a>
<span>
                            &nbsp;: void    </span>
Redirects to a given URL with an optional message and delay time.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_f_date">f_date()</a>
<span>
                            &nbsp;: string    </span>
Format date in given format
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_trimWhiteSpace">trimWhiteSpace()</a>
<span>
                            &nbsp;: string    </span>
Trims whitespace characters from the beginning and end of a string.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_removeCDATA">removeCDATA()</a>
<span>
                            &nbsp;: string    </span>
Removes CDATA tags from a given string
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_validXMLChr">validXMLChr()</a>
<span>
                            &nbsp;: string    </span>
Removes invalid characters from XML content.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_removeHighAscii">removeHighAscii()</a>
<span>
                            &nbsp;: string    </span>
Removes high ASCII characters from the input string and replaces them with spaces.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_remfiles">remfiles()</a>
<span>
                            &nbsp;: bool    </span>
Deletes all files in the given directory that match the specified pattern.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_writeFile">writeFile()</a>
<span>
                            &nbsp;: bool    </span>
Write data to a file
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_uc_unique">uc_unique()</a>
<span>
                            &nbsp;: string    </span>
This function has been used to return unique number.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_GUID64_encode">GUID64_encode()</a>
<span>
                            &nbsp;: string    </span>
Encodes an integer using base 64 and returns a string of a specified size.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_GUID64_decode">GUID64_decode()</a>
<span>
                            &nbsp;: int    </span>
Decodes a base-64 encoded GUID string into a decimal number.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_uc_unique_rev">uc_unique_rev()</a>
<span>
                            &nbsp;: mixed    </span>
This function has been used to reverse unique no.. Decode a unique string generated with uc_unique.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_dec2string">dec2string()</a>
<span>
                            &nbsp;: string|false    </span>
Converts a decimal number to a string representation in the given base.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_string2dec">string2dec()</a>
<span>
                            &nbsp;: string|false    </span>
Convert a string in a given base to a decimal number.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getMicroTime">getMicroTime()</a>
<span>
                            &nbsp;: float    </span>
Returns the current Unix timestamp with microseconds
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getTimeByTimezone">getTimeByTimezone()</a>
<span>
                            &nbsp;: string    </span>
Returns the current time in the specified time zone.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_setAssessmentDateTime">setAssessmentDateTime()</a>
<span>
                            &nbsp;: string    </span>
Sets the assessment date and time based on a specified timezone option.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getEndDate">getEndDate()</a>
<span>
                            &nbsp;: string    </span>
Get the end date based on the start date, end date or number of days.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_isDatePassed">isDatePassed()</a>
<span>
                            &nbsp;: bool    </span>
Check if the given date has already passed based on the given timezone.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_joinPaths">joinPaths()</a>
<span>
                            &nbsp;: string    </span>
This is the function that has been used to join paths.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_addProtocol">addProtocol()</a>
<span>
                            &nbsp;: string    </span>
Add a protocol to a URL if it does not already have one.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_rprint_r">rprint_r()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Recursive version of print_r that returns the result as an associative array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function___ucd">__ucd()</a>
<span>
                            &nbsp;: void    </span>
Outputs the given variable for debugging purposes only if the server name is 'localhost'.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_str2Assoc">str2Assoc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Convert a string to an associative array
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_ucIsset">ucIsset()</a>
<span>
                            &nbsp;: bool    </span>
Check if a variable is set and not empty, and optionally compare it to a given value.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_ucInStr">ucInStr()</a>
<span>
                            &nbsp;: bool    </span>
This is the function that has been used to return haystack.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_ucTblStr">ucTblStr()</a>
<span>
                            &nbsp;: string    </span>
Create a table row from an array of data.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_ucItemsByArray">ucItemsByArray()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This is the function that has been used to return array by uc items.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_string_between">get_string_between()</a>
<span>
                            &nbsp;: string    </span>
Returns a string between two delimiters in a larger string.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_ucArrayByItem">ucArrayByItem()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Return an associative array indexed by a specific item in a nested array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_strToHex">strToHex()</a>
<span>
                            &nbsp;: string    </span>
Convert a string to its hexadecimal representation.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_hex2bin">hex2bin()</a>
<span>
                            &nbsp;: string    </span>
Converts a hexadecimal string to its binary representation.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_generateAuthToken">generateAuthToken()</a>
<span>
                            &nbsp;: string    </span>
Generates an authentication token using AES-256-CBC encryption.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_extractAuthToken">extractAuthToken()</a>
<span>
                            &nbsp;: string|null    </span>
Extracts a string from an encrypted token generated using generateAuthToken function.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array_merge_uc">array_merge_uc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Merge two arrays, optionally recursively.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array_keys_uc">array_keys_uc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Returns all the keys or specific keys of an array, optionally filtered by value.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array_unique_uc">array_unique_uc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Removes duplicate values from an array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_count_uc">count_uc()</a>
<span>
                            &nbsp;: int    </span>
Counts the number of elements in an array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array_change_key_uc">array_change_key_uc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Returns a new array with the keys changed to the value of the specified key in the original array
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_multi_array_sort">multi_array_sort()</a>
<span>
                            &nbsp;: mixed    </span>
Sorts a multidimensional array by a specified key
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_obfuscate_link">obfuscate_link()</a>
<span>
                            &nbsp;: string    </span>
Obfuscates a given link by encoding it using base64 and rawurlencode.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_unobfuscate_link">unobfuscate_link()</a>
<span>
                            &nbsp;: string    </span>
Converts a number of seconds into a human-readable string
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_seconds2human">seconds2human()</a>
<span>
                            &nbsp;: string    </span>
This is the function that has been used to convert seconds to human.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_friendlyDate">friendlyDate()</a>
<span>
                            &nbsp;: string    </span>
Returns a human-readable string representing the time elapsed since the provided timestamp
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_formatISBN">formatISBN()</a>
<span>
                            &nbsp;: string    </span>
Format a given ISBN number into a standard format with hyphens.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_addToArchive">addToArchive()</a>
<span>
                            &nbsp;: void    </span>
Adds files from a directory to a ZIP archive.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_dateafter">dateafter()</a>
<span>
                            &nbsp;: string    </span>
Returns the date after a specified number of days after a given date.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_timezoneDoesDST">timezoneDoesDST()</a>
<span>
                            &nbsp;: bool|int    </span>
Check if the given timezone observes Daylight Saving Time (DST).
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_time_difference">get_time_difference()</a>
<span>
                            &nbsp;: string    </span>
Calculates the time difference between two time values
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_convertToUTC">convertToUTC()</a>
<span>
                            &nbsp;: int    </span>
Convert a given time to UTC time
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_generateAccessToken">generateAccessToken()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Generates an access token for a client with the given ID and email.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_verifyAccessToken">verifyAccessToken()</a>
<span>
                            &nbsp;: string    </span>
Verify the access token using JWT decode
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_refreshAccessToken">refreshAccessToken()</a>
<span>
                            &nbsp;: object|bool    </span>
This is the function that has been used to refresh access token.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_friendlyguid">friendlyguid()</a>
<span>
                            &nbsp;: string    </span>
Converts a GUID to a more friendly format by replacing confusing characters.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getUserIP">getUserIP()</a>
<span>
                            &nbsp;: string    </span>
Get the user's IP address.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array_column_uc">array_column_uc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This is the function that has been used to get columns of array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_bin2ip">bin2ip()</a>
<span>
                            &nbsp;: string    </span>
This is the function that has been used to get bin from IP.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_removeStrSpace">removeStrSpace()</a>
<span>
                            &nbsp;: string    </span>
Removes whitespace characters from a string.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_json_validate">json_validate()</a>
<span>
                            &nbsp;: mixed    </span>
Validate a JSON string and return the decoded result.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_resizeImage">resizeImage()</a>
<span>
                            &nbsp;: void    </span>
Resize an image and save it to the specified path.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_uf_findkey">uf_findkey()</a>
<span>
                            &nbsp;: string    </span>
Find the key from a string
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_utf8json">utf8json()</a>
<span>
                            &nbsp;: string    </span>
Encode an array to UTF-8 encoded JSON string
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getContentsGUIDs">getContentsGUIDs()</a>
<span>
                            &nbsp;: mixed    </span>
Function to get contentGUIDs based on filters
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getDisabledGuids">getDisabledGuids()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Remove elements from an array based on keys present in another array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_removeInvisible">removeInvisible()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This function eliminate invisible guids from the question list
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_delete_from_coverage">delete_from_coverage()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Deletes a given content GUID from a coverage array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_setAnswerSeq">setAnswerSeq()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Sets answer sequence for an array of answers.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getAnswerSeqStr">getAnswerSeqStr()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Returns the answer sequence string based on the given parameters.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_grade_formula_default">get_grade_formula_default()</a>
<span>
                            &nbsp;: string|array&lt;string|int, mixed&gt;    </span>
Get the default grade formula in a JSON-encoded string or as an array
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_grade_scale_default">get_grade_scale_default()</a>
<span>
                            &nbsp;: string|array&lt;string|int, mixed&gt;    </span>
Returns the default grade scale as a JSON string or array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_course_config_default">get_course_config_default()</a>
<span>
                            &nbsp;: mixed    </span>
It is the function that has been used to get default config detail.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_coverage_default">get_coverage_default()</a>
<span>
                            &nbsp;: string    </span>
Returns the default coverage for a course, in JSON format.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getTestName">getTestName()</a>
<span>
                            &nbsp;: string    </span>
Returns the name of a test based on its type and optional details.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_zfill">zfill()</a>
<span>
                            &nbsp;: string    </span>
Pads the given number with leading zeros until it reaches the given length.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_range">get_range()</a>
<span>
                            &nbsp;: mixed    </span>
Returns a value within a specific range, or a default value if not set
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_default">get_default()</a>
<span>
                            &nbsp;: mixed    </span>
Returns a default value if the primary value is empty, else returns the primary value.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_replaceconst">replaceconst()</a>
<span>
                            &nbsp;: string    </span>
Replaces constants in a string with their corresponding values.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_replaceimage">replaceimage()</a>
<span>
                            &nbsp;: string    </span>
Replaces images in a string with secure URLs, if necessary.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_replacelinebreak">replacelinebreak()</a>
<span>
                            &nbsp;: string    </span>
Replace line break tags and syntax tags with proper <pre> tags for syntax highlighting
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_byte2array">byte2array()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Converts a byte to an array of bits, using a given default array as a template.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_arrayFilterBasedOnKey">arrayFilterBasedOnKey()</a>
<span>
                            &nbsp;: mixed    </span>
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array2byte">array2byte()</a>
<span>
                            &nbsp;: string    </span>
This function is used to convert array into byte.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_ddl_data_uc">get_ddl_data_uc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This function is used to get ddl data.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getFlashCardContentSubtypes">getFlashCardContentSubtypes()</a>
<span>
                            &nbsp;: mixed    </span>
Get FlashCard content subtypes.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_extractArray">extractArray()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This function is used to extract array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_unsetArrayData">unsetArrayData()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This function is used to unset array data.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findexts">findexts()</a>
<span>
                            &nbsp;: string|void    </span>
Returns the file extension of a given filename
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_file_extension">get_file_extension()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Get the file extension and name from a file path.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getSeqList">getSeqList()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
A function to Get Sequence List of Guid.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getOrderType">getOrderType()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This function is used to get order type.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_calcPrice">calcPrice()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Calculate the net price and discount information based on the given data.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_extractLicence">extractLicence()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;|string    </span>
Extracts license information from an array of licenses.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findtextnew_withouttrim">findtextnew_withouttrim()</a>
<span>
                            &nbsp;: string|false    </span>
Searches for a string between two other strings in a given string
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findContentImage">findContentImage()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
This function is used to find content image.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findAssets">findAssets()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
It is the function that has been used to detect assets.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findSpanGuids">findSpanGuids()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Extracts GUIDs from <span> tags in the given string.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_findDevices">findDevices()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Find all device images in a string.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_api_convert_test_session_options2array">api_convert_test_session_options2array()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Convert test session options from integer to an associative array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_api_convert_test_session_array2options">api_convert_test_session_array2options()</a>
<span>
                            &nbsp;: int    </span>
Convert test session options array to binary format.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_api_convert_assignment_schedule_options2array">api_convert_assignment_schedule_options2array()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Convert an assignment schedule options integer to an associative array.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_api_convert_assignment_schedule_array2options">api_convert_assignment_schedule_array2options()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
It is the function that has been used to convert test session array into options.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_score2grade">score2grade()</a>
<span>
                            &nbsp;: string    </span>
A function for score to grade.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_result2grade">result2grade()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Converts a set of results to grades based on a given grade scale.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getCurrentOSFromServer">getCurrentOSFromServer()</a>
<span>
                            &nbsp;: string    </span>
Returns the current operating system from the server.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_json_encode_uc">json_encode_uc()</a>
<span>
                            &nbsp;: string|false    </span>
Encode the given data as JSON with support for encoding Unicode characters
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_json_decode_uc">json_decode_uc()</a>
<span>
                            &nbsp;: mixed    </span>
Decodes a JSON string and returns the resulting value.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_rand_uc">rand_uc()</a>
<span>
                            &nbsp;: int    </span>
Generate a random number within a given range.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_strip_all_tags_uc">strip_all_tags_uc()</a>
<span>
                            &nbsp;: string    </span>
A function for to strip tags.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_file_get_contents_uc">file_get_contents_uc()</a>
<span>
                            &nbsp;: string|false    </span>
Read entire contents of a file into a string
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_debug_backtrace_uc">debug_backtrace_uc()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
A function for to get debug trace.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_sanitize_title_with_dashes_uc">sanitize_title_with_dashes_uc()</a>
<span>
                            &nbsp;: string    </span>
Sanitizes a title, replacing whitespace and a few other characters with dashes. * Limits the output to alphanumeric characters, underscore (_) and dash (-).
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_file_get_contents_curl">file_get_contents_curl()</a>
<span>
                            &nbsp;: string    </span>
Retrieve the contents of a URL using cURL.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_create_redis_key">create_redis_key()</a>
<span>
                            &nbsp;: string    </span>
Generates a Redis key using a given string value and prefix.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_get_sys_mac_address">get_sys_mac_address()</a>
<span>
                            &nbsp;: string|null    </span>
Retrieve the MAC address of the current system.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_array_merge_preserve">array_merge_preserve()</a>
<span>
                            &nbsp;: array&lt;string|int, mixed&gt;    </span>
Merge arrays while preserving keys.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function___ucc">__ucc()</a>
<span>
                            &nbsp;: mixed    </span>
This is the function that has been used to debug and print data in jigyaasa.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_generateNewPassword">generateNewPassword()</a>
<span>
                            &nbsp;: string    </span>
Generates a new random password.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_getLMSPlatformIDFromURL">getLMSPlatformIDFromURL()</a>
<span>
                            &nbsp;: string    </span>
Returns the LMS platform ID based on the given URL.
        <dt class="phpdocumentor-table-of-contents__entry -function -">
<a href="namespaces/default.html#function_kelvinToCelsius">kelvinToCelsius()</a>
<span>
                            &nbsp;: mixed    </span>
</dl>



    <section class="phpdocumentor-functions">
    <h3 class="phpdocumentor-elements__header" id="functions">
        Functions
        <a href="namespaces/default.html#functions" class="headerlink"><i class="fas fa-link"></i></a>
    </h3>
                <article class="phpdocumentor-element -function - ">
<h4 class="phpdocumentor-element__name" id="function_isValidEmail">
    isValidEmail()
    <a href="namespaces/default.html#function_isValidEmail" class="headerlink"><i class="fas fa-link"></i></a>
</h4>
<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="functions.php"><a href="files/functions.html"><abbr title="functions.php">functions.php</abbr></a></abbr>
:
<span class="phpdocumentor-element-found-in__line">20</span>

</aside>

    <p class="phpdocumentor-summary">Check if an email address is valid.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">isValidEmail</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$email</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ignore_number</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$email</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The email address to check.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ignore_number</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. Whether to ignore numbers or not. Default is false.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns the email address if valid, false otherwise.</p>

checkPhoneNo()

functions.php : 48
</aside>

    <p class="phpdocumentor-summary">Check if the given string is a valid phone number.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">checkPhoneNo</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The phone number to be checked.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns 1 if the phone number is valid, otherwise returns 0.</p>

sanitizeEmail()

functions.php : 61
</aside>

    <p class="phpdocumentor-summary">Sanitize an email address.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">sanitizeEmail</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$email</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$email</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The email address to be sanitized.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The sanitized email address.</p>

sanitizeString()

functions.php : 72
</aside>

    <p class="phpdocumentor-summary">Sanitizes a string by removing multiple spaces, stripping tags, and escaping special characters.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">sanitizeString</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to be sanitized.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The sanitized string.</p>

gen_uuid()

functions.php : 88
</aside>

    <p class="phpdocumentor-summary">Generates a UUID / unique ID of specified length</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">gen_uuid</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$len</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">8</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$salt</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;ucertify&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$len</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">8</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The desired length of the ID (defaults to 8)</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$salt</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;ucertify&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The salt to use for generating the ID (defaults to 'ucertify')</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The generated unique ID</p>

getUserRequest()

functions.php : 111
</aside>

    <p class="phpdocumentor-summary">Retrieves user request data from $_GET and $_POST.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getUserRequest</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">array()</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isStrip</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$data</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
             = <span class="phpdocumentor-signature__argument__default-value">array()</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The data array to populate with request values.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$isStrip</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to strip tags from request values or not (defaults to true).</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The populated data array.</p>

datediff()

functions.php : 149
</aside>

    <p class="phpdocumentor-summary">It is the function that has been to find difference between two dates in diffrent units like month,year and days.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">datediff</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$interval</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$datefrom</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dateto</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$using_timestamps</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$interval</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes interval.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$datefrom</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes datefrom.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$dateto</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes dateto.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$using_timestamps</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes using_timestamps.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as whole response of function.</p>

strIntoComma()

functions.php : 253
</aside>

    <p class="phpdocumentor-summary">Converts a string into a comma-separated list of values, removing extra spaces and newlines.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">strIntoComma</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to convert.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The comma-separated list of values.</p>

getDatesListFromRange()

functions.php : 268
</aside>

    <p class="phpdocumentor-summary">Generates a list of dates between a given start and end date.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getDatesListFromRange</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$start</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$end</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$format</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;Y-m-d&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$start</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Start date in 'Y-m-d' format</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$end</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>End date in 'Y-m-d' format</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$format</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;Y-m-d&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Date format for the output list, defaults to 'Y-m-d'</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>List of dates between the start and end date</p>

xml2array()

functions.php : 290
</aside>

    <p class="phpdocumentor-summary">Convert an XML string to a nested array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">xml2array</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$xml</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$xml</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The XML string to convert.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting nested array.</p>

xmltoArray()

functions.php : 337
</aside>

    <p class="phpdocumentor-summary">This function that is used to convert xml into array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">xmltoArray</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$xml</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$xml</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes xml string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

array2xml()

functions.php : 459
</aside>

    <p class="phpdocumentor-summary">This function has been used to convert array to xml.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array2xml</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mainTag</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ary</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$id</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$mainTag</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes mainTag.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ary</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes ary.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$id</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the id.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the function.</p>

short_string()

functions.php : 504
</aside>

    <p class="phpdocumentor-summary">Shorten a string to a specified length.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">short_string</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$length</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">80</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$direction</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$remove_single_quote</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to shorten.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$length</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">80</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The maximum length of the shortened string.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$direction</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The direction from which to shorten the string. 1 for left, 2 for right, 0 for both sides.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$remove_single_quote</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether or not to remove single quotes from the string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The shortened string.</p>

findtext()

functions.php : 538
</aside>

    <p class="phpdocumentor-summary">Find a substring within a string between two given substrings and update the starting index.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findtext</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fstr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lstr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes str.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$fstr</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes fstr.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$lstr</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the lstr.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$i</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the i.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the function.</p>

findtextnew()

functions.php : 552
</aside>

    <p class="phpdocumentor-summary">This function has been used to find text (new function : to find between substrings).</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findtextnew</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fstr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lstr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes str.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$fstr</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes fstr.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$lstr</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the lstr.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$i</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the i.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the function.</p>

getAttribute()

functions.php : 591
</aside>

    <p class="phpdocumentor-summary">Extracts the value of the specified attribute from an HTML/XML tag.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getAttribute</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$strmle</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$tag</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$attribute</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$strmle</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string containing the tag.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$tag</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The name of the tag to extract the attribute from.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$attribute</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The name of the attribute to extract.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$i</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The index to start searching for the tag.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The value of the specified attribute, or an empty string if the attribute is not found.</p>

removecomments()

functions.php : 646
</aside>

    <p class="phpdocumentor-summary">Remove comments and specific tags from a string.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">removecomments</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The modified string.</p>

removephrase()

functions.php : 665
</aside>

    <p class="phpdocumentor-summary">Removes a specified phrase from a given string.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">removephrase</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$keystart</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$keyend</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to remove the phrase from.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$keystart</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The starting phrase to remove.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$keyend</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The ending phrase to remove.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting string with the phrase removed.</p>

getSmartyTemplate()

functions.php : 701
</aside>

    <p class="phpdocumentor-summary">Find and get the Smarty template or retrieves an instance of the Smarty template engine with appropriate settings and assigns common global variables.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getSmartyTemplate</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$templatedir</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;layout/templates&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$basedir</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$usesitename</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$templatedir</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;layout/templates&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes templatedir.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$basedir</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes basedir.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$usesitename</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the usesitename.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the function.</p>

strtodate()

functions.php : 788
</aside>

    <p class="phpdocumentor-summary">Converts a date string to the format &#039;mm/dd/yyyy&#039;.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">strtodate</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The date string to convert.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The formatted date string</p>

datetostr()

functions.php : 811
</aside>

    <p class="phpdocumentor-summary">Converts a date string in the format MM/DD/YYYY to a string in the format YYYYMMDD000000.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">datetostr</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$date</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$date</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The date to convert. If empty, the current date and time will be used.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The date string in the format YYYYMMDD000000.</p>

dayafter()

functions.php : 834
</aside>

    <p class="phpdocumentor-summary">This function has been used to convert date.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">dayafter</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$date</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dayafter</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>

    <section class="phpdocumentor-description"><p>Returns the date that is a certain number of days after a given date.

If no date is specified, defaults to the current date.

    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$date</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The starting date (format: 'YYYYMMDD').</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$dayafter</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The number of days after the starting date.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting date (format: 'YYYYMMDD000000').</p>

f_random()

functions.php : 875
</aside>

    <p class="phpdocumentor-summary">Generates a random string with specified length and type.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">f_random</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a_digit</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">5</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a_rantype</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$a_digit</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">5</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The length of the random string.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$a_rantype</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The type of random string: 1 for alphanumeric, 2 for alphabetic, 3 for numeric.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The generated random string.</p>

redirect_header()

functions.php : 918
</aside>

    <p class="phpdocumentor-summary">Redirects to a given URL with an optional message and delay time.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">redirect_header</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$url</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">3</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$message</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$url</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The URL to redirect to.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">3</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The delay time in seconds before redirecting (default is 3 seconds).</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$message</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The message to display (default is an empty string).</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">void</span>
        &mdash;

f_date()

functions.php : 955
</aside>

    <p class="phpdocumentor-summary">Format date in given format</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">f_date</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$dt</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fmt</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;d-M-y&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$dt</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Date string to format</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$fmt</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;d-M-y&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Format string (default: 'd-M-y')</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Formatted date string</p>

trimWhiteSpace()

functions.php : 974
</aside>

    <p class="phpdocumentor-summary">Trims whitespace characters from the beginning and end of a string.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">trimWhiteSpace</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string to remove CDATA tags from</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting string with CDATA tags removed</p>

removeCDATA()

functions.php : 985
</aside>

    <p class="phpdocumentor-summary">Removes CDATA tags from a given string</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">removeCDATA</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string to remove CDATA tags from</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting string with CDATA tags removed</p>

validXMLChr()

functions.php : 1004
</aside>

    <p class="phpdocumentor-summary">Removes invalid characters from XML content.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">validXMLChr</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$content</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$content</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The XML content to validate.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The validated XML content.</p>

removeHighAscii()

functions.php : 1033
</aside>

    <p class="phpdocumentor-summary">Removes high ASCII characters from the input string and replaces them with spaces.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">removeHighAscii</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$content</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$content</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string to sanitize.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The sanitized string with high ASCII characters replaced with spaces.</p>

remfiles()

functions.php : 1049
</aside>

    <p class="phpdocumentor-summary">Deletes all files in the given directory that match the specified pattern.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">remfiles</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$path</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$match</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$path</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The directory to search for files in.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$match</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The pattern to match file names against.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns <code class="prettyprint">true</code> if all files were successfully deleted, <code class="prettyprint">false</code> otherwise.</p>

writeFile()

functions.php : 1073
</aside>

    <p class="phpdocumentor-summary">Write data to a file</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">writeFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$file</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The file path to write to</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$data</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The data to write to the file</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
        &mdash;
        <section class="phpdocumentor-description"><p>True on success, false on failure</p>

uc_unique()

functions.php : 1091
</aside>

    <p class="phpdocumentor-summary">This function has been used to return unique number.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">uc_unique</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ctime</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$base</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">36</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$is_rand</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$size</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">8</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>

    <section class="phpdocumentor-description"><p>Generates a unique ID based on the current time and optionally a random number.</p>
    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ctime</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The current time as a Unix timestamp. If not provided or 0, the current time will be used.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$base</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">36</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The numeric base to use for the encoding. Defaults to 36.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$is_rand</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to include a random number in the unique ID. Defaults to true.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$size</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">8</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The desired size of the unique ID. Defaults to 8.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The generated unique ID.</p>

GUID64_encode()

functions.php : 1116
</aside>

    <p class="phpdocumentor-summary">Encodes an integer using base 64 and returns a string of a specified size.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">GUID64_encode</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$size</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">2</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$i</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The integer to encode.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$size</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">2</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The desired size of the resulting string. Default is 2.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The base 64 encoded string.</p>

GUID64_decode()

functions.php : 1127
</aside>

    <p class="phpdocumentor-summary">Decodes a base-64 encoded GUID string into a decimal number.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">GUID64_decode</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$s</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$s</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The base-64 encoded GUID string to decode.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The decimal number representation of the GUID.</p>

uc_unique_rev()

functions.php : 1143
</aside>

    <p class="phpdocumentor-summary">This function has been used to reverse unique no..

Decode a unique string generated with uc_unique.

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">uc_unique_rev</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$base</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">36</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$is_rand</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$size</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">8</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The unique string to decode.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$base</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">36</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The number base to use for decoding the string. Default is 36.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$is_rand</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether the unique string includes random characters. Default is true.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$size</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">8</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The number of characters in the unique string. Default is 8.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns the decoded timestamp (and random characters, if applicable) as a string or integer.</p>

dec2string()

functions.php : 1171
</aside>

    <p class="phpdocumentor-summary">Converts a decimal number to a string representation in the given base.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">dec2string</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$decimal</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$base</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$firstalpha</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|false</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$decimal</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The decimal number to convert.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$base</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The base to use for the string representation.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$firstalpha</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to include the first alphabetical characters in the charset.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|false</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The string representation of the decimal number in the given base, or false if an error occurred.</p>

string2dec()

functions.php : 1218
</aside>

    <p class="phpdocumentor-summary">Convert a string in a given base to a decimal number.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">string2dec</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$base</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|false</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$base</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The base of the input string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|false</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The decimal number as a string on success, false on failure.</p>

getMicroTime()

functions.php : 1266
</aside>

    <p class="phpdocumentor-summary">Returns the current Unix timestamp with microseconds</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getMicroTime</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>





    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">float</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The current Unix timestamp with microseconds</p>

getTimeByTimezone()

functions.php : 1279
</aside>

    <p class="phpdocumentor-summary">Returns the current time in the specified time zone.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getTimeByTimezone</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time_zone</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;Europe/London&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$format</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;Y-m-d H:i:s&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time_zone</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;Europe/London&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The time zone to use, default is 'Europe/London'.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$format</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;Y-m-d H:i:s&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The date/time format to return, default is 'Y-m-d H:i:s'.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The current time in the specified time zone, formatted according to the specified format.</p>

setAssessmentDateTime()

functions.php : 1298
</aside>

    <p class="phpdocumentor-summary">Sets the assessment date and time based on a specified timezone option.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">setAssessmentDateTime</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$date</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$timezone_option</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$date</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The date in the format 'Y-m-d'.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The time in the format 'H:i' or 'H:i:s'.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$timezone_option</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The timezone option to use, specified as a time offset or timezone string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The assessment date and time in the format 'Y-M-d H:i:s'.</p>

getEndDate()

functions.php : 1316
</aside>

    <p class="phpdocumentor-summary">Get the end date based on the start date, end date or number of days.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getEndDate</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$start_date</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$end_date</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool|int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$days</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$start_date</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The start date in string format ('Y-m-d').</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$end_date</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The end date in string format ('Y-m-d').</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$days</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool|int</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The number of days to add to the start date.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The end date in the format 'Y-m-d', or an empty string if no date is found.</p>

isDatePassed()

functions.php : 1339
</aside>

    <p class="phpdocumentor-summary">Check if the given date has already passed based on the given timezone.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">isDatePassed</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$new_date</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time_zone</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;Europe/London&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$new_date</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The date to be checked in string format ('Y-m-d H:i:s').</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time_zone</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;Europe/London&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The timezone identifier in which to check the date.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
        &mdash;
        <section class="phpdocumentor-description"><p>True if the given date has already passed, false otherwise or if an exception occurred.</p>

joinPaths()

functions.php : 1358
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to join paths.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">joinPaths</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>





    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as whole response of function.</p>

addProtocol()

functions.php : 1386
</aside>

    <p class="phpdocumentor-summary">Add a protocol to a URL if it does not already have one.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">addProtocol</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$url</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|false&nbsp;</span><span class="phpdocumentor-signature__argument__name">$protocol</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$url</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The URL to add a protocol to.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$protocol</span>
            : <span class="phpdocumentor-signature__argument__return-type">string|false</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The protocol to add to the URL. If false, the function will attempt to determine the protocol automatically.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The URL with the protocol added.</p>

rprint_r()

functions.php : 1408
</aside>

    <p class="phpdocumentor-summary">Recursive version of print_r that returns the result as an associative array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">rprint_r</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$in</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$in</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input variable to print.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The result as an associative array.</p>

__ucd()

functions.php : 1459
</aside>

    <p class="phpdocumentor-summary">Outputs the given variable for debugging purposes only if the server name is &#039;localhost&#039;.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">__ucd</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isDie</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isPre</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>

    <section class="phpdocumentor-description"><p>It is print_r with <pre class="prettyprint"> tags in it running on only local server *</p>
    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$a</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The variable to output.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$isDie</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to terminate the script after outputting the variable.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$isPre</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to wrap the output in a <pre class="prettyprint"> tag for better readability.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">void</span>
        &mdash;

str2Assoc()

functions.php : 1480
</aside>

    <p class="phpdocumentor-summary">Convert a string to an associative array</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">str2Assoc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$sep_1</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;,&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$sep_2</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;|&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to convert</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$sep_1</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;,&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The separator used to split the string into key-value pairs</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$sep_2</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;|&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The separator used to split each key-value pair</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting associative array</p>

ucIsset()

functions.php : 1498
</aside>

    <p class="phpdocumentor-summary">Check if a variable is set and not empty, and optionally compare it to a given value.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">ucIsset</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$v</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$val</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$v</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The variable to check.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$val</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The value to compare $v to (optional).</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns true if $v is set and not empty (and optionally equal to $val), false otherwise.</p>

ucInStr()

functions.php : 1515
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to return haystack.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">ucInStr</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$needle</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$delimiter</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;,&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>

    <section class="phpdocumentor-description"><p>Searches for the occurrence of a string within a comma-separated list of strings.</p>
    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$needle</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to search for.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The comma-separated list of strings to search in.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$delimiter</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;,&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The delimiter used to separate the strings.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool</span>
        &mdash;
        <section class="phpdocumentor-description"><p>True if the string is found in the list, false otherwise.</p>

ucTblStr()

functions.php : 1533
</aside>

    <p class="phpdocumentor-summary">Create a table row from an array of data.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">ucTblStr</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$thead</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$istr</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The data to be used to create the table row. Can be an array or a string.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$thead</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether the row is a table header row.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$istr</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to wrap the row in <tr> tags.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The HTML string representing the table row.</p>

ucItemsByArray()

functions.php : 1577
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to return array by uc items.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">ucItemsByArray</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$items</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$item</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>

    <section class="phpdocumentor-description"><p>Returns an array of values from an array of associative arrays *</p>
    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$items</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Array of associative arrays</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$item</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Key name to retrieve from each associative array</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Array of values for the given key name</p>

get_string_between()

functions.php : 1595
</aside>

    <p class="phpdocumentor-summary">Returns a string between two delimiters in a larger string.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_string_between</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$start</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$end</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The larger string to search in.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$start</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The starting delimiter.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$end</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The ending delimiter.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The substring between the two delimiters.</p>

ucArrayByItem()

functions.php : 1619
</aside>

    <p class="phpdocumentor-summary">Return an associative array indexed by a specific item in a nested array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">ucArrayByItem</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$item</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|false&nbsp;</span><span class="phpdocumentor-signature__argument__name">$val_str</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The array to traverse.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$item</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The key to use as the index.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$val_str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string|false</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>A comma-separated list of values to include in the output.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An associative array indexed by the specified key.</p>

strToHex()

functions.php : 1644
</aside>

    <p class="phpdocumentor-summary">Convert a string to its hexadecimal representation.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">strToHex</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string to convert.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The hexadecimal representation of the input string.</p>

hex2bin()

functions.php : 1664
</aside>

    <p class="phpdocumentor-summary">Converts a hexadecimal string to its binary representation.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">hex2bin</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$hex</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$hex</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The hexadecimal string to convert.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The binary representation of the input.</p>

generateAuthToken()

functions.php : 1678
</aside>

    <p class="phpdocumentor-summary">Generates an authentication token using AES-256-CBC encryption.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">generateAuthToken</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$secret_key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to encrypt and include in the token.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$secret_key</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The secret key to use for encryption.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The generated authentication token.</p>

extractAuthToken()

functions.php : 1697
</aside>

    <p class="phpdocumentor-summary">Extracts a string from an encrypted token generated using generateAuthToken function.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">extractAuthToken</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$encrypt_string</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$secret_key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|null</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$encrypt_string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The encrypted token string to extract from.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$secret_key</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The secret key used to encrypt the token.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|null</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The decrypted string or null if the token is invalid.</p>

array_merge_uc()

functions.php : 1719
</aside>

    <p class="phpdocumentor-summary">Merge two arrays, optionally recursively.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array_merge_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr1</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr2</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool|int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$recursive</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr1</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The first array to merge</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr2</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The second array to merge</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$recursive</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool|int</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to merge the arrays recursively</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The merged array</p>

array_keys_uc()

functions.php : 1743
</aside>

    <p class="phpdocumentor-summary">Returns all the keys or specific keys of an array, optionally filtered by value.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array_keys_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input array.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$value</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The value to filter keys by. If set, only keys with this value will be returned.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The array keys.</p>

array_unique_uc()

functions.php : 1762
</aside>

    <p class="phpdocumentor-summary">Removes duplicate values from an array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array_unique_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input array.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The array with duplicate values removed.</p>

count_uc()

functions.php : 1776
</aside>

    <p class="phpdocumentor-summary">Counts the number of elements in an array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">count_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The array to count elements in.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The number of elements in the array.</p>

array_change_key_uc()

functions.php : 1791
</aside>

    <p class="phpdocumentor-summary">Returns a new array with the keys changed to the value of the specified key in the original array</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array_change_key_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The original array to be modified</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$key</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The key to use as the new array key</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The new array with keys changed to the value of $key</p>

multi_array_sort()

functions.php : 1811
</aside>

    <p class="phpdocumentor-summary">Sorts a multidimensional array by a specified key</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">multi_array_sort</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$reverse_sort</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$data</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The array to be sorted</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$key</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The key to sort by</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$reverse_sort</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to sort in reverse order</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
functions.php : 1841
</aside>

    <p class="phpdocumentor-summary">Obfuscates a given link by encoding it using base64 and rawurlencode.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">obfuscate_link</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$temp</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$temp</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The link to be obfuscated.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The obfuscated link.</p>
functions.php : 1854
</aside>

    <p class="phpdocumentor-summary">Converts a number of seconds into a human-readable string</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">unobfuscate_link</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$link</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$link</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes link.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the functions.</p>

seconds2human()

functions.php : 1869
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to convert seconds to human.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">seconds2human</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$seconds</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$is_short</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$return_index</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$seconds</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes seconds.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$is_short</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes is_short.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$return_index</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes return_index.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the functions.</p>

friendlyDate()

functions.php : 1917
</aside>

    <p class="phpdocumentor-summary">Returns a human-readable string representing the time elapsed since the provided timestamp</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">friendlyDate</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Unix timestamp to calculate time elapsed from</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Human-readable string representing time elapsed</p>

formatISBN()

functions.php : 1954
</aside>

    <p class="phpdocumentor-summary">Format a given ISBN number into a standard format with hyphens.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">formatISBN</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isbn</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$isbn</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The ISBN number to format.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The formatted ISBN number.</p>

addToArchive()

functions.php : 1975
</aside>

    <p class="phpdocumentor-summary">Adds files from a directory to a ZIP archive.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">addToArchive</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$filePath</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$output_archive</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|false&nbsp;</span><span class="phpdocumentor-signature__argument__name">$output_zip_name</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$download</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$remove</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$filePath</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The path of the directory containing the files to be added to the archive.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$output_archive</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The path of the ZIP archive to create.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$output_zip_name</span>
            : <span class="phpdocumentor-signature__argument__return-type">string|false</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The name of the ZIP archive to be downloaded, or false to use the default name.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$download</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to download the ZIP archive.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$remove</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to remove the original files after adding them to the archive.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">void</span>
        &mdash;

dateafter()

functions.php : 2019
</aside>

    <p class="phpdocumentor-summary">Returns the date after a specified number of days after a given date.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">dateafter</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$date</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$daysafter</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$date</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The date to start from in YYYY-MM-DD format.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$daysafter</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The number of days after the starting date to return (default 0).</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting date in YYYY-MM-DD format.</p>

timezoneDoesDST()

functions.php : 2031
</aside>

    <p class="phpdocumentor-summary">Check if the given timezone observes Daylight Saving Time (DST).</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">timezoneDoesDST</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$tzId</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|false&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time_zone_offset</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool|int</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$tzId</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The timezone identifier (e.g. &quot;America/New_York&quot;).</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time_zone_offset</span>
            : <span class="phpdocumentor-signature__argument__return-type">int|false</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The timezone offset from GMT in hours.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">bool|int</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns true if the timezone observes DST, false if not. If an error occurs, returns false.</p>

get_time_difference()

functions.php : 2058
</aside>

    <p class="phpdocumentor-summary">Calculates the time difference between two time values</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_time_difference</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$start_time</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$end_time</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$format</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;%H:%I:%S&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$start_time</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The starting time value</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$end_time</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The ending time value</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$format</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;%H:%I:%S&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The output format for the time difference, defaults to '%H:%I:%S'</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The time difference in the specified format.</p>

convertToUTC()

functions.php : 2092
</aside>

    <p class="phpdocumentor-summary">Convert a given time to UTC time</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">convertToUTC</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time_zone_dst</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$time_zone</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The time to be converted</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time_zone_dst</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>An array of time zone DST information</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$time_zone</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The time zone offset in minutes</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The converted UTC time</p>

generateAccessToken()

functions.php : 2111
</aside>

    <p class="phpdocumentor-summary">Generates an access token for a client with the given ID and email.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">generateAccessToken</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$client_id</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$email</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string|false&nbsp;</span><span class="phpdocumentor-signature__argument__name">$suffix_str</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$key_type</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$client_id</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The client ID.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$email</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The client email.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$suffix_str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string|false</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>An optional string to add as a suffix to the token.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$key_type</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The type of key to use for the token (default is 1).</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An array containing the access token and status message.</p>

verifyAccessToken()

functions.php : 2136
</aside>

    <p class="phpdocumentor-summary">Verify the access token using JWT decode</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">verifyAccessToken</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$token</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$token</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes token.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the functions.</p>

refreshAccessToken()

functions.php : 2147
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to refresh access token.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">refreshAccessToken</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$old_token</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">object|bool</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$old_token</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">object|bool</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns the decoded token object on success or false on failure</p>

friendlyguid()

functions.php : 2173
</aside>

    <p class="phpdocumentor-summary">Converts a GUID to a more friendly format by replacing confusing characters.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">friendlyguid</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$guid</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$guid</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The GUID to convert.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The converted GUID.</p>

getUserIP()

functions.php : 2198
</aside>

    <p class="phpdocumentor-summary">Get the user&#039;s IP address.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getUserIP</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>





    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>User's IP address or &quot;UNKNOWN&quot; if unable to detect.</p>

array_column_uc()

functions.php : 2224
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to get columns of array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array_column_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$array</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$column</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>

    <section class="phpdocumentor-description"><p>Get an array of values from a specific column in a multi-dimensional array with uppercase column names.</p>
    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$array</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input array.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$column</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The column to retrieve the values from.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting array of values from the specified column.</p>

bin2ip()

functions.php : 2242
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to get bin from IP.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">bin2ip</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$bin</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>

    <section class="phpdocumentor-description"><p>Convert binary representation of IP address to string</p>
    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$bin</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Binary representation of IP address</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns string representation of IP address</p>

removeStrSpace()

functions.php : 2258
</aside>

    <p class="phpdocumentor-summary">Removes whitespace characters from a string.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">removeStrSpace</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string to process.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The input string with all whitespace characters removed.</p>

json_validate()

functions.php : 2274
</aside>

    <p class="phpdocumentor-summary">Validate a JSON string and return the decoded result.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">json_validate</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$error</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The JSON string to validate.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$error</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>A reference to a variable that will contain the error message if the JSON is invalid.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The decoded JSON data if valid, or false if invalid.</p>

resizeImage()

functions.php : 2336
</aside>

    <p class="phpdocumentor-summary">Resize an image and save it to the specified path.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">resizeImage</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$imgObject</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$savePath</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$image_type</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$imgName</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$imgMaxWidth</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$imgMaxHeight</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$imgQuality</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$imgObject</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The image file path.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$savePath</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The path where the resized image will be saved.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$image_type</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The type of the image, e.g. 'jpg', 'jpeg', 'png', etc.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$imgName</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The name of the resized image file.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$imgMaxWidth</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The maximum width of the resized image.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$imgMaxHeight</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The maximum height of the resized image.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$imgQuality</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The quality of the resized image, from 0 to 100.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">void</span>
        &mdash;

uf_findkey()

functions.php : 2373
</aside>

    <p class="phpdocumentor-summary">Find the key from a string</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">uf_findkey</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$key</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string to find the key from</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$key</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The variable to store the found key</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The value found after the key</p>

utf8json()

functions.php : 2392
</aside>

    <p class="phpdocumentor-summary">Encode an array to UTF-8 encoded JSON string</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">utf8json</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$inArray</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$inArray</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The array to encode</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The encoded JSON string</p>

getContentsGUIDs()

functions.php : 2444
</aside>

    <p class="phpdocumentor-summary">Function to get contentGUIDs based on filters</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getContentsGUIDs</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coverage</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$seq2coverage</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$content_type</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;q,u,f&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$content_subtype</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$parent_guid</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$testnos</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">-1</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$level</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$demo</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">-1</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$visible</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$coverage</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$seq2coverage</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$content_type</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;q,u,f&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$content_subtype</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$parent_guid</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$testnos</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">-1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$level</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$demo</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">-1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$visible</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
        </dl>


<h5 class="phpdocumentor-tag-list__heading" id="tags">
    Tags
    <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
                                <dt class="phpdocumentor-tag-list__entry">
                <span class="phpdocumentor-tag__name">returns</span>
            </dt>
            <dd class="phpdocumentor-tag-list__definition">
                                                                            
                                             <section class="phpdocumentor-description"><p>array list of GUIDS</p>
                                </dd>
                    </dl>

    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;

getDisabledGuids()

functions.php : 2642
</aside>

    <p class="phpdocumentor-summary">Remove elements from an array based on keys present in another array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getDisabledGuids</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$config_setting</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coverage</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$seq2coverage</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$config_setting</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes config_setting.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$coverage</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the coverage.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$seq2coverage</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the seq2coverage.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as whole response of function.</p>

removeInvisible()

functions.php : 2719
</aside>

    <p class="phpdocumentor-summary">This function eliminate invisible guids from the question list</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">removeInvisible</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ques</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$invisible</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$only_array</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ques</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the ques.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$invisible</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the invisible.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$only_array</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the boolean.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

delete_from_coverage()

functions.php : 2746
</aside>

    <p class="phpdocumentor-summary">Deletes a given content GUID from a coverage array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">delete_from_coverage</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coverage</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$content_guid</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$coverage</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The coverage array to modify.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$content_guid</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The content GUID to remove from the coverage.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The modified coverage array.</p>

setAnswerSeq()

functions.php : 2777
</aside>

    <p class="phpdocumentor-summary">Sets answer sequence for an array of answers.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">setAnswerSeq</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$answers</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$total_answers</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$correct_answers</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ansSeqType</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$answers</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The array of answers to set sequence for.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$total_answers</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The total number of answers.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$correct_answers</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The total number of correct answers.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ansSeqType</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The type of answer sequence to use.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The updated array of answers with sequence.</p>

getAnswerSeqStr()

functions.php : 2820
</aside>

    <p class="phpdocumentor-summary">Returns the answer sequence string based on the given parameters.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getAnswerSeqStr</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$seq</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$type</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$flip</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$seq</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the seq.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$type</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the type.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$flip</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the flip.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

get_grade_formula_default()

functions.php : 3053
</aside>

    <p class="phpdocumentor-summary">Get the default grade formula in a JSON-encoded string or as an array</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_grade_formula_default</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$is_array</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$is_array</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Flag to determine if the formula should be returned as an array</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The default grade formula in a JSON-encoded string or as an array, based on the $is_array flag</p>

get_grade_scale_default()

functions.php : 3068
</aside>

    <p class="phpdocumentor-summary">Returns the default grade scale as a JSON string or array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_grade_scale_default</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$is_array</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$is_array</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>If true, returns the grade scale as an associative array. Default is false.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns the default grade scale as a JSON string or array, depending on the value of $is_array.</p>

get_course_config_default()

functions.php : 3081
</aside>

    <p class="phpdocumentor-summary">It is the function that has been used to get default config detail.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_course_config_default</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>

    <section class="phpdocumentor-description"><p>Returns the default course configuration*@return string The default course configuration in JSON format</p>
    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;

get_coverage_default()

functions.php : 3093
</aside>

    <p class="phpdocumentor-summary">Returns the default coverage for a course, in JSON format.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_coverage_default</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$chapter_guid</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$chapter_guid</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The GUID of the chapter to include in the coverage.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The default coverage, in JSON format.</p>

getTestName()

functions.php : 3121
</aside>

    <p class="phpdocumentor-summary">Returns the name of a test based on its type and optional details.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getTestName</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ttype</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$detail</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isShort</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$testName</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">array()</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ttype</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The type of test.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$detail</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional details about the test.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$isShort</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to return the short version of the test name.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$testName</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
             = <span class="phpdocumentor-signature__argument__default-value">array()</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional array of custom test names.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The name of the test.</p>

zfill()

functions.php : 3179
</aside>

    <p class="phpdocumentor-summary">Pads the given number with leading zeros until it reaches the given length.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">zfill</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$n</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$n</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The number to pad with leading zeros.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$a</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The desired length of the resulting string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The padded string.</p>

get_range()

functions.php : 3192
</aside>

    <p class="phpdocumentor-summary">Returns a value within a specific range, or a default value if not set</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_range</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$var</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$min</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$max</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$default</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$var</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The value to check</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$min</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The minimum value of the range</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$max</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The maximum value of the range</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$default</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The default value to return if $var is not set</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The value within the specified range or the default value</p>

get_default()

functions.php : 3208
</aside>

    <p class="phpdocumentor-summary">Returns a default value if the primary value is empty, else returns the primary value.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_default</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$primary_value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$default_value</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$second_value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$primary_value</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The primary value to be checked for empty.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$default_value</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The default value to be returned if primary value is empty.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$second_value</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>An optional secondary value to be used if primary value is empty.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The primary value if not empty, otherwise returns the default value or the secondary value.</p>

replaceconst()

functions.php : 3226
</aside>

    <p class="phpdocumentor-summary">Replaces constants in a string with their corresponding values.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">replaceconst</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ls_online</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$nolinebreak</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ls_online</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to search and replace.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$nolinebreak</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. If true, removes line breaks from the string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The string with constants replaced by their corresponding values.</p>

replaceimage()

functions.php : 3251
</aside>

    <p class="phpdocumentor-summary">Replaces images in a string with secure URLs, if necessary.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">replaceimage</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to replace images in.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The string with replaced images.</p>

replacelinebreak()

functions.php : 3278
</aside>

    <p class="phpdocumentor-summary">Replace line break tags and syntax tags with proper &lt;pre&gt; tags for syntax highlighting</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">replacelinebreak</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$nolinebreak</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the str.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$nolinebreak</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the nolinebreak.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

byte2array()

functions.php : 3361
</aside>

    <p class="phpdocumentor-summary">Converts a byte to an array of bits, using a given default array as a template.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">byte2array</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$byte</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$defarray</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$len</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$byte</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The byte to convert.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$defarray</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The default array to use as a template.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$len</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The length of the byte in bytes (default: 1).</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting array of bits.</p>

arrayFilterBasedOnKey()

functions.php : 3379
</aside>


<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">arrayFilterBasedOnKey</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$convert_array</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$target_array</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$seprator</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;, &#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>

    <section class="phpdocumentor-description"></section>

    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$convert_array</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$target_array</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$seprator</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;, &#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;

array2byte()

functions.php : 3403
</aside>

    <p class="phpdocumentor-summary">This function is used to convert array into byte.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array2byte</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$option</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$defarray</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$len</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$option</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the option.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$defarray</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the defarray.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$len</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the len.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

get_ddl_data_uc()

functions.php : 3431
</aside>

    <p class="phpdocumentor-summary">This function is used to get ddl data.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_ddl_data_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$array</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$idcolumn</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$datacolumn</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ddl</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$array</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the array.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$idcolumn</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the idcolumn.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$datacolumn</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the datacolumn.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ddl</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the ddl.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

getFlashCardContentSubtypes()

functions.php : 3460
</aside>

    <p class="phpdocumentor-summary">Get FlashCard content subtypes.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getFlashCardContentSubtypes</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ret_array</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ret_array</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to return an array or a comma-separated string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An array or a comma-separated string of content subtypes.</p>

extractArray()

functions.php : 3477
</aside>

    <p class="phpdocumentor-summary">This function is used to extract array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">extractArray</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$indexes</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ignore_blank</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input array</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$indexes</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>A comma-separated list of indexes to extract</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ignore_blank</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to ignore blank values or not</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The resulting array with extracted values</p>

unsetArrayData()

functions.php : 3502
</aside>

    <p class="phpdocumentor-summary">This function is used to unset array data.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">unsetArrayData</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$arr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$indexes</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arr</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input array</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$indexes</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>A comma-separated list of indexes to be unset</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The input array with specified indexes unset</p>

findexts()

functions.php : 3520
</aside>

    <p class="phpdocumentor-summary">Returns the file extension of a given filename</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findexts</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$filename</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|void</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$filename</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The filename to extract extension from</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|void</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The file extension, or void if the input is empty or invalid</p>

get_file_extension()

functions.php : 3538
</aside>

    <p class="phpdocumentor-summary">Get the file extension and name from a file path.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_file_extension</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file_name</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$file_name</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The file path.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An array containing the file extension and name.</p>

getSeqList()

functions.php : 3562
</aside>

    <p class="phpdocumentor-summary">A function to Get Sequence List of Guid.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getSeqList</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$guid</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$coverage</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$seq2coverage</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>

    <section class="phpdocumentor-description"><p>Initialises variable $start_slide with $coverage guid[s] and $slide_level with $coverage guid[l] plus 1.

Takes a loop for seq2coverage and checks if seq is greater than $start_slide and $coverage guid[l] is equal to $slide_level then checks $coverage guid[t] equal to s then assigns guid value to pslide. Else checks if $coverage guid[t] value is equal to f and $content guid[content_subtype] is greater than or equal to 9 or equal to 45 assigns guid value to pslide and lastly checks for value equal to u and and then return $pslide.

Get sequence list based on coverage and seq2coverage array

    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$guid</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The guid of the starting slide</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$coverage</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>An array containing information about the coverage of each slide</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$seq2coverage</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>An array mapping sequences to slide guids</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An array of slide guids</p>

getOrderType()

functions.php : 3593
</aside>

    <p class="phpdocumentor-summary">This function is used to get order type.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getOrderType</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>





    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the function.</p>

calcPrice()

functions.php : 3626
</aside>

    <p class="phpdocumentor-summary">Calculate the net price and discount information based on the given data.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">calcPrice</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$data</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the input array.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the function.</p>

extractLicence()

functions.php : 3662
</aside>

    <p class="phpdocumentor-summary">Extracts license information from an array of licenses.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">extractLicence</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;|string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$licences</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$is_byte</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$full</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;|string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$licences</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;|string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The array of licenses or license string to extract from.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$is_byte</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether the license is in byte format or not.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$full</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Whether to return the full license information.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;|string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The extracted license information.</p>

findtextnew_withouttrim()

functions.php : 3693
</aside>

    <p class="phpdocumentor-summary">Searches for a string between two other strings in a given string</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findtextnew_withouttrim</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$fstr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$lstr</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__reference-operator">&amp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|false</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to search in</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$fstr</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The starting string</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$lstr</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The ending string</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$i</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The index of the starting position of the found string</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|false</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The string between the starting and ending strings, or false if not found</p>

findContentImage()

functions.php : 3733
</aside>

    <p class="phpdocumentor-summary">This function is used to find content image.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findContentImage</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$maxloop</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">15</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$all</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">true</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$xml</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$is_find_alt</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the str.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$maxloop</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">15</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the maxloop.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$all</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">true</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the all.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$xml</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the xml.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$is_find_alt</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the is_find_alt.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as overall response of the function.</p>

findAssets()

functions.php : 3978
</aside>

    <p class="phpdocumentor-summary">It is the function that has been used to detect assets.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findAssets</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$maxloop</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">15</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes str.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$maxloop</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
             = <span class="phpdocumentor-signature__argument__default-value">15</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the maxloop.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as whole response of function.</p>

findSpanGuids()

functions.php : 4135
</aside>

    <p class="phpdocumentor-summary">Extracts GUIDs from &lt;span&gt; tags in the given string.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findSpanGuids</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The string to search for <span> tags.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An array of GUIDs found in the <span> tags.</p>

findDevices()

functions.php : 4159
</aside>

    <p class="phpdocumentor-summary">Find all device images in a string.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">findDevices</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$str</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$str</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The input string to search.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An array of device images found in the input string.</p>

api_convert_test_session_options2array()

functions.php : 4183
</aside>

    <p class="phpdocumentor-summary">Convert test session options from integer to an associative array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">api_convert_test_session_options2array</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$opt</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$opt</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The integer value of the options.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An associative array of the test session options.</p>

api_convert_test_session_array2options()

functions.php : 4214
</aside>

    <p class="phpdocumentor-summary">Convert test session options array to binary format.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">api_convert_test_session_array2options</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ary</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ary</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>An associative array of options to be converted.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The converted binary format of the options.</p>

api_convert_assignment_schedule_options2array()

functions.php : 4258
</aside>

    <p class="phpdocumentor-summary">Convert an assignment schedule options integer to an associative array.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">api_convert_assignment_schedule_options2array</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$opt</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$opt</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The assignment schedule options integer.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The assignment schedule options as an associative array.</p>

api_convert_assignment_schedule_array2options()

functions.php : 4280
</aside>

    <p class="phpdocumentor-summary">It is the function that has been used to convert test session array into options.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">api_convert_assignment_schedule_array2options</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$ary</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$ary</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes ary.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as whole response of function.</p>

score2grade()

functions.php : 4335
</aside>

    <p class="phpdocumentor-summary">A function for score to grade.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">score2grade</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$grade_scale</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$score</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$grade_type</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$grade_scale</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>It contains a string of grade.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$score</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>It contains a string for.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$grade_type</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>It contains a string for type of grade.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>is the response of the function.</p>

result2grade()

functions.php : 4362
</aside>

    <p class="phpdocumentor-summary">Converts a set of results to grades based on a given grade scale.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">result2grade</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$grade_scale</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$results</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$grade_scale</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The grade scale to use for converting scores to grades.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$results</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The set of results to be graded.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>An array of grades, one for each result in the set.</p>

getCurrentOSFromServer()

functions.php : 4397
</aside>

    <p class="phpdocumentor-summary">Returns the current operating system from the server.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getCurrentOSFromServer</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>





    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The name of the operating system.</p>

json_encode_uc()

functions.php : 4449
</aside>

    <p class="phpdocumentor-summary">Encode the given data as JSON with support for encoding Unicode characters</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">json_encode_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$depth</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">512</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|false</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$data</span>
            : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The data to be encoded</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$options</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>[optional] Bitmask of JSON encoding options</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$depth</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">512</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>[optional] Maximum depth to traverse when encoding</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|false</span>
        &mdash;
        <section class="phpdocumentor-description"><p>A JSON encoded string on success, false on failure</p>

json_decode_uc()

functions.php : 4467
</aside>

    <p class="phpdocumentor-summary">Decodes a JSON string and returns the resulting value.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">json_decode_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$assoc</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$depth</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">512</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The JSON string to decode.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$assoc</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. When true, returned objects will be converted into associative arrays.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$depth</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
             = <span class="phpdocumentor-signature__argument__default-value">512</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. User specified recursion depth.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$options</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. Bitmask of JSON decode options.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The value encoded in JSON or false on failure.</p>

rand_uc()

functions.php : 4489
</aside>

    <p class="phpdocumentor-summary">Generate a random number within a given range.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">rand_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">int|false&nbsp;</span><span class="phpdocumentor-signature__argument__name">$min</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">int|false&nbsp;</span><span class="phpdocumentor-signature__argument__name">$max</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$min</span>
            : <span class="phpdocumentor-signature__argument__return-type">int|false</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The minimum value of the range (default: 0).</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$max</span>
            : <span class="phpdocumentor-signature__argument__return-type">int|false</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The maximum value of the range (default: getrandmax()).</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">int</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The random number generated within the given range.</p>

strip_all_tags_uc()

functions.php : 4507
</aside>

    <p class="phpdocumentor-summary">A function for to strip tags.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">strip_all_tags_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$string</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$string</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the string.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

file_get_contents_uc()

functions.php : 4521
</aside>

    <p class="phpdocumentor-summary">Read entire contents of a file into a string</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">file_get_contents_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file_name</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$include_path</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">false</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">resource|null&nbsp;</span><span class="phpdocumentor-signature__argument__name">$context</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$start</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|false</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$file_name</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Name of the file to read</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$include_path</span>
            : <span class="phpdocumentor-signature__argument__return-type">bool</span>
             = <span class="phpdocumentor-signature__argument__default-value">false</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. Search for the file in the include_path. Default is false.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$context</span>
            : <span class="phpdocumentor-signature__argument__return-type">resource|null</span>
             = <span class="phpdocumentor-signature__argument__default-value">null</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. A valid context resource created with stream_context_create(). Default is null.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$start</span>
            : <span class="phpdocumentor-signature__argument__return-type">int</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Optional. The position in bytes to start reading. Default is 0.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|false</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Returns the read data or false on failure.</p>

debug_backtrace_uc()

functions.php : 4541
</aside>

    <p class="phpdocumentor-summary">A function for to get debug trace.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">debug_backtrace_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">DEBUG_BACKTRACE_PROVIDE_OBJECT</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$limit</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$options</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">DEBUG_BACKTRACE_PROVIDE_OBJECT</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the options.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$limit</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the limit.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

sanitize_title_with_dashes_uc()

functions.php : 4598
</aside>

    <p class="phpdocumentor-summary">Sanitizes a title, replacing whitespace and a few other characters with dashes. *

Limits the output to alphanumeric characters, underscore (_) and dash (-).

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">sanitize_title_with_dashes_uc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$title</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>

    <section class="phpdocumentor-description"><p>Whitespace becomes a dash.</p>
    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$title</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The title to be sanitized.</p>
        </dd>
        </dl>


<h5 class="phpdocumentor-tag-list__heading" id="tags">
    Tags
    <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
</h5>
<dl class="phpdocumentor-tag-list">
                                <dt class="phpdocumentor-tag-list__entry">
                <span class="phpdocumentor-tag__name">since</span>
            </dt>
            <dd class="phpdocumentor-tag-list__definition">
                                        <span class="phpdocumentor-tag-link">1.2.0</span>
                                                                            
                                         
                                </dd>
                    </dl>

    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The sanitized title.</p>

file_get_contents_curl()

functions.php : 4678
</aside>

    <p class="phpdocumentor-summary">Retrieve the contents of a URL using cURL.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">file_get_contents_curl</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$url</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$url</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The URL to retrieve.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The contents of the URL, or false if the request fails.</p>

create_redis_key()

functions.php : 4701
</aside>

    <p class="phpdocumentor-summary">Generates a Redis key using a given string value and prefix.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">create_redis_key</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$val</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$prefix</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">&#039;p:&#039;</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$val</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the val.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$prefix</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
             = <span class="phpdocumentor-signature__argument__default-value">&#039;p:&#039;</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>is the prefix.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>as response of the function.</p>

get_sys_mac_address()

functions.php : 4712
</aside>

    <p class="phpdocumentor-summary">Retrieve the MAC address of the current system.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">get_sys_mac_address</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string|null</span></code>





    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string|null</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The MAC address if it can be found, otherwise null.</p>

array_merge_preserve()

functions.php : 4742
</aside>

    <p class="phpdocumentor-summary">Merge arrays while preserving keys.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">array_merge_preserve</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__variadic-operator">...</span><span class="phpdocumentor-signature__argument__name">$arrays</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$arrays</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>Variable-length array of arrays to be merged.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
        &mdash;
        <section class="phpdocumentor-description"><p>Merged array.</p>

__ucc()

functions.php : 4762
</aside>

    <p class="phpdocumentor-summary">This is the function that has been used to debug and print data in jigyaasa.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">__ucc</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$a</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isDie</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isPre</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">1</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$a</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes a.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$isDie</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes isDie.</p>
        </dd>
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$isPre</span>
            : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
             = <span class="phpdocumentor-signature__argument__default-value">1</span>            </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>denotes isPre.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;

generateNewPassword()

functions.php : 4780
</aside>

    <p class="phpdocumentor-summary">Generates a new random password.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">generateNewPassword</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>





    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>A new password string.</p>

getLMSPlatformIDFromURL()

functions.php : 4799
</aside>

    <p class="phpdocumentor-summary">Returns the LMS platform ID based on the given URL.</p>

<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">getLMSPlatformIDFromURL</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$url</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>


    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$url</span>
            : <span class="phpdocumentor-signature__argument__return-type">string</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"><p>The URL to check.</p>
        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">string</span>
        &mdash;
        <section class="phpdocumentor-description"><p>The LMS platform ID or 'unknown' if not found.</p>

kelvinToCelsius()

index.php : 101
</aside>


<code class="phpdocumentor-code phpdocumentor-signature ">
<span class="phpdocumentor-signature__visibility"></span>
                <span class="phpdocumentor-signature__name">kelvinToCelsius</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$kelvin</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>

    <section class="phpdocumentor-description"></section>

    <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
<dl class="phpdocumentor-argument-list">
                <dt class="phpdocumentor-argument-list__entry">
            <span class="phpdocumentor-signature__argument__name">$kelvin</span>
            : <span class="phpdocumentor-signature__argument__return-type">float</span>
                        </dt>
        <dd class="phpdocumentor-argument-list__definition">
                <section class="phpdocumentor-description"></section>

        </dd>
        </dl>



    <h5 class="phpdocumentor-return-value__heading">Return values</h5>
<span class="phpdocumentor-signature__response_type">mixed</span>
        &mdash;
            <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
<section class="phpdocumentor-search-results__dialog">
    <header class="phpdocumentor-search-results__header">
        <h2 class="phpdocumentor-search-results__title">Search results</h2>
        <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
    </header>
    <section class="phpdocumentor-search-results__body">
        <ul class="phpdocumentor-search-results__entries"></ul>
    </section>
</section>
</main>

<script>
    cssVars({});
</script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>

Clone this wiki locally