Date: 2019-01-02
Author: rumi, legale.legale@gmail.com
Status: Implemented (in PHP 7.4)
mb_str_split is a function to perform string splitting to an array of defined size chunks.
Descriptionarray mb_str_split (string $string [, integer $split_length = 1, string $encoding = mb_internal_encoding() ])
The function works through the libmbfl library and supports all libmbfl supported charsets just like other mbstring functions.
Usage example<?php print_r(mb_str_split("победа", 2)); --EXPECT-- Array ( [0] => по [1] => бе [2] => да )Proposal
Include function into the existent mbstring extension.
Proposed PHP Version(s)next PHP-7.x
RFC Impact To Existing Extensionsmbstring
To OpcacheOpcache is not affected.
New ConstantsNo.
Open IssuesNo.
Future ScopeNo.
Proposed Voting ChoicesThis project requires 50%+1 majority. The voting period: from 2019-01-10 to 2019-01-20.
Patches and Testshttps://github.com/php/php-src/pull/3715 https://github.com/php/php-src/pull/3808
ImplementationWas merged into master (PHP-7.4)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3