PHP str_split()

1 개요[ | ]

PHP str_split()
$str = "Hello";
$arr = str_split($str);
print_r($arr);
# Array
# (
#     [0] => H
#     [1] => e
#     [2] => l
#     [3] => l
#     [4] => o
# )
$str = "Hello Friend";
$arr = str_split($str, 3);
print_r($arr);
# Array
# (
#     [0] => Hel
#     [1] => lo 
#     [2] => Fri
#     [3] => end
# )

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}