2017 © Pedro Peláez
 

library miniutils

A collection of useful functions.

image

hylin/miniutils

A collection of useful functions.

  • Tuesday, September 5, 2017
  • by Hy369
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,150 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MiniUtils

A collection of useful functions that implemented as classes., (*1)

Build Status Coverage Status Total Downloads Latest Unstable Version License, (*2)

Installation

composer require hylin/miniutils

Usage

MuString

utf8ToUnicode

Convert character from UTF-8 to Unicode., (*3)

Description
string utf8ToUnicode(string $str[, string $prefix = '\\u'[, string $suffix = ''[,
bool $reserveAscii = true]]])
Parameters

str, (*4)

The string to be converted., (*5)

prefix, (*6)

The prefix of string to be converted, the default is \u, (*7)

suffix, (*8)

The suffix of string to be converted, the default is empty string., (*9)

reserveAscii, (*10)

Whether the ascii character will be converted or not., (*11)

unicodeToUtf8

string unicodeToUtf8(string $str[, string $prefix = '\\u'[, string $suffix = '']])

replaceSuffix

string replaceSuffix(string $str, string $suffix)

getSuffix

string getSuffix($str[, $withDot = false])

MuArray

keyMap

void function keyMap(array &$array, callable $callback)

merge

void merge(&$array1, ...$array2)

multiSort

void multiSort(&$array, $key[, $order = SORT_ASC[, $maintainIndex = false]])

MuDate

timestampToUtc

string timestampToUtc(int $timestamp[, bool $minTime = false])

The Versions

05/09 2017

dev-master

9999999-dev https://www.iphp8.com

A collection of useful functions.

  Sources   Download

MIT

The Requires

 

The Development Requires

functions