> str_split() in php ~ Online tutorial

str_split() in php

The str_split() function splits the string into an array
Syntax
str_split(string,length)
Example

<?php
// split the string into an array
print_r(str_split("hello"));
print_r(str_split("hello",2));
?>

Output
Array([0]=>h
[1]=>e
[2]=>l
[3]=>l
[4]=>o
)
Array([0]=>he
[1]=>ll
[2]=>o)

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: