- var_dump: documentation ( source)
- explode: documentation ( source)
<?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("\n", $str);
var_dump($arra1);
?>