<!DOCTYPE html><html><head></head>
<body><?php
echo chunk_split("abcdefghi",3,"...")."<br />";
print_r(str_split("abcdefghi",3));
echo "<br />";
print_r(str_getcsv('"Sally,Irene",Osman'));
echo "<br />";
print_r(explode(",","Sally,Irene,Osman,Henry",3));
echo "<br />";
echo implode("---",["Sally","Irene","Osman"])."<br /><br />";
$s = "This is\tan example\nstring";
$t = strtok($s, " \n\t");
while ($t !== false) {
echo "($t)";
$t = strtok(" \n\t");
}
?></body></html>
<!DOCTYPE html><html><head></head>
<body><?php
echo chunk_split("abcdefghi",3,"...")."<br />";
print_r(str_split("abcdefghi",3));
echo "<br />";
print_r(str_getcsv('"Sally,Irene",Osman'));
echo "<br />";
print_r(explode(",","Sally,Irene,Osman,Henry",3));
echo "<br />";
echo implode("---",["Sally","Irene","Osman"])."<br /><br />";
$s = "This is\tan example\nstring";
$t = strtok($s, " \n\t");
while ($t !== false) {
echo "($t)";
$t = strtok(" \n\t");
}
?></body></html>
abc...def...ghi...
Array ( [0] => abc [1] => def [2] => ghi )
Array ( [0] => Sally,Irene [1] => Osman )
Array ( [0] => Sally [1] => Irene [2] => Osman,Henry )
Sally---Irene---Osman
(This)(is)(an)(example)(string)