programming-examples/php/String/PHP script to put a string in an array.php
2019-11-15 12:59:38 +01:00

5 lines
188 B
PHP

<?php
$str = "Twinkle, twinkle, little star,\nHow I wonder what you are.\nUp above the world so high,\nLike a diamond in the sky.";
$arra1 = explode("<br>", $str);
var_dump($arra1);
?>