Mwnci main functions are loaded at application start
include("main")
Functions
| Command | Definition |
| bin2dec() | Returns a decimal number from the given binary number. |
| bsearch() | Returns the index within an array of a given search |
| contains() | Returns true if a string contains the given word. |
| enumerate() | Returns the contents of an array as a collection of array pairs, and adds a counter as the key of the enumerate array. |
| getblock() | Returns an array of strings between and including the first string an second string from an array. |
| getenv() | Returns the value of the named environment variable. |
| getfileblock() | Returns an array of strings between and including the first string an second string from a file. |
| head() | Returns the designated amount if lines from a string, or first amount of elements from an array. |
| interpol() | Returns a string with tokenised names replaced by the hash token value. |
| intersect() | Returns an array that contains the items that exist in both array x, and array y. |
| isrsorted() | Returns true if the contents of an array are sorted in descending order. |
| lines() | Returns the amount of lines in a string (where lines are separated by “\n”). |
| lookupcname() | Returns the canonical name for the given host. |
| lookuphost() | Returns an array of the named host’s addresses. |
| lookupip() | Returns an array of that host’s IP addresses. |
| lookupmx() | Returns the DNS MX records for the given domain name sorted by preference. |
| lookupns() | Returns an array of the name servers for the given host. |
| lookupptr() | Returns an array of domain names for a given IP address. |
| lookuptxt() | Returns an array of the TXT records for the given host. |
| map() | Executes a specified function for each item in a string or array. |
| max() | Returns highest value within the named array. |
| min() | Returns lowest value within the named array. |
| oct2bin() | Returns binary string equivalent of an octal number. |
| oct2dec() | Returns decimal equivalent of an octal number. |
| oct2sym() | Returns symbolic notation of file permissions for the given octal number. |
| rest() | Returns a new array with the first element of array removed. |
| rindex() | Returns the position of the search item (indicated as an integer) in a string or array. |
| rotl() | Rotates the items in a string or array to the left. |
| rotr() | Rotates the items in a string or array to the right. |
| rsort() | Returns an array in reverse sorted order. |
| rsortips() | Returns an array of IP addresses in descending order. | sortips() | Returns an array of IP address in ascending order. |
| tail() | Returns the last designated amount of lines from a string, or last amount of elements from an array. |
| usort() | Returns a new array sorted in ascending order, with duplicates removed. |