programming-examples/php/String/PHP script to put a string in an array.php

5 lines
188 B
PHP
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<?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);
?>