Tokenize a string: Difference between revisions
Content added Content deleted
(Changed task to include list additionally to array; Haskell example) |
m (→{{header|PHP}}: Simpler example) |
||
Line 229: | Line 229: | ||
<?php |
<?php |
||
$str = 'Hello,How,Are,You,Today'; |
$str = 'Hello,How,Are,You,Today'; |
||
$arr = |
$arr = explode(',', $str); |
||
echo implode('.', |
echo implode('.', $arr); |
||
?> |
?> |
||