array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.mb-split.php', 1 => 'mb_split', ), 'up' => array ( 0 => 'ref.mbstring.php', 1 => 'マルチバイト文字列 関数', ), 'prev' => array ( 0 => 'function.mb-send-mail.php', 1 => 'mb_send_mail', ), 'next' => array ( 0 => 'function.mb-str-pad.php', 1 => 'mb_str_pad', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/mbstring/functions/mb-split.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
mb_split — マルチバイト文字列を正規表現により分割する
マルチバイト文字列
string
において、正規表現
pattern
により文字列を分割し、
結果を配列として返します。
pattern
正規表現パターン。
string
分割する文字列。
limit
limit
を指定した場合は、
最大 limit
個の要素に分割されます。
結果を配列で返します。
失敗した場合に false
を返します
注意:
mb_regex_encoding() で指定した文字エンコーディングを、 この関数の文字エンコーディングとして使用します。