Answers for "preg_split"

PHP
0

preg_split

<?php
$str = 'string';
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
print_r($chars);
?>
Posted by: Guest on September-10-2020

Browse Popular Code Answers by Language