## `m()`

Normalizes range to a new range.

### Description

``m(float|int \$value, array \$a = [float|int \$from, float|int \$to], array \$b = [float|int \$from, float|int \$to]): float|int;``

This function normalizes a range to a new range.

### Example

``````// Convert range of 0–24 to 0–100
\$test = m(12, [0, 24], [0, 100]) . '%'; // Returns `'50%'`
\$test = m(123, [0, 24], [0, 100]) . '%'; // Returns `'512.5%'`
// You can ensure that the given value does not exceed the range with the `b()` function
\$test = m(b(123, [0, 24]), [0, 24], [0, 100]) . '%'; // Returns `'100%'```````

Make an IDR currency scale from an USD currency scale, where 1 USD is equal to 15000 IDR:

``````\$a = [0, 1]; // USD scale
\$b = [0, 15000]; // IDR scale

// Convert USD to IDR
\$test = m(50, \$a, \$b); // Returns `750000```````

Make an USD currency scale from an IDR currency scale, where 15000 IDR is equal to 1 USD:

``````\$a = [0, 15000]; // IDR scale
\$b = [0, 1]; // USD scale

// Convert IDR to USD
\$test = m(50000, \$a, \$b); // Returns `3.3333333333333335```````

#### `a()`

Converts object to array.

#### `abort()`

Aborts the next script execution with a message.

#### `all()`

Checks if all items in the data pass the test.

#### `anemone()`

Returns an anemone.

#### `any()`

Checks if at least one item in the value passes the test.

#### `b()`

Ensures the minimum and maximum value of a value.

#### `c()`

Converts text to camel case.

#### `c2f()`

Converts class name to file name.

#### `check()`

Validates a token.

#### `choke()`

Allows access at certain intervals.

#### `concat()`

Concatenates multiple arrays into one array.

#### `content()`

Gets or sets file content.

#### `delete()`

Deletes a file/folder.

#### `drop()`

Removes meaning-less array items to reduce the size.

#### `e()`

Evaluates string to the proper data type.

#### `eat()`

Escapes HTML/XML attribute’s value.

Equal to.

#### `exist()`

Checks if file/folder exists.

#### `extend()`

Merges multiple arrays into one array.

#### `f()`

Filters out characters from a string.

#### `f2c()`

Converts file name to class name.

#### `f2p()`

Converts file name to property name.

#### `fetch()`

Fetches content from a remote URL.

#### `find()`

Gets the first array item that passes the test.

#### `fire()`

Executes a callable or a function.

#### `g()`

Generates a list of files and/or folders from a folder.

#### `ge()`

Greater than or equal to.

#### `get()`

Gets values from an array using dot notation access.

Greater than.

#### `h()`

Hyphenates current value.

#### `has()`

Checks if an array contains a key using dot notation access.

#### `hook()`

Gets or sets a hook or hooks.

#### `i()`

Makes text translatable.

#### `is()`

Filters the data so that only items that pass the test are left.

#### `j()`

Gets array items that are not present in the second array.

#### `k()`

Generates a filtered list of files and/or folders from a folder.

#### `kick()`

Redirects to a page.

#### `l()`

Converts text to lower case.

#### `le()`

Less than or equal to.

#### `let()`

Deletes values from an array using dot notation access.

#### `long()`

Converts relative URL to full URL.

Less than.

#### `m()`

Normalizes range to a new range.

#### `map()`

Creates a new data set from the current data.

#### `move()`

Moves a file/folder to a folder.

#### `n()`

Normalizes string.

Not equal to.

#### `not()`

Filters the data so that only items that does not pass the test are left.

#### `o()`

Converts array to object.

#### `p()`

Converts text to pascal case.

#### `p2f()`

Converts property name to file name.

#### `path()`

Normalizes and resolves file/folder path.

#### `pluck()`

Returns a new data set contains values from the key on every item.

#### `q()`

Counts the data quantity.

Replaces string.

#### `s()`

Converts value to the string representation of it.

Saves a file.

#### `seal()`

Sets a file/folder permission.

#### `send()`

Sends HTML email.

#### `set()`

Sets values to an array using dot notation access.

#### `shake()`

Shakes array order.

#### `short()`

Converts full URL to relative URL.

#### `size()`

Converts size in bytes to a human readable string format.

#### `state()`

Gets or sets a state or states.

#### `status()`

Gets current request/response headers and status or sets current response headers and status.

#### `step()`

Creates a step sequence of a split pattern.

#### `store()`

Moves the uploaded file to a folder.

#### `stream()`

Streams the file content chunk by chunk.

#### `t()`

Trims value from a delimiter once.

#### `test()`

Inspects the output of a PHP code.

#### `token()`

Generates a token.

#### `type()`

Gets or sets current response type.

#### `u()`

Converts text to upper case.

#### `ua()`

Gets the client’s user agent string.

#### `v()`

Returns a string without the backslash prefix on every regular expression characters.

#### `w()`

Converts file name or HTML string to plain text.

#### `x()`

Returns a string with the backslash prefix on every regular expression characters.

#### `y()`

Converts iterator to array.

#### `z()`

Converts PHP values to a compact string of PHP values.

#### `zone()`

Gets or sets current application time zone.