PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
$string = "This is my string\nAs you can tell,\nit has many new lines.\n";
$array = array();
$array = whatfunction("\n", $string);
$i = 0;
foreach ($array as $split)
{
echo $split[$i];
echo ":::::";
$i++;
}
//Output something like this: This is my string:::::As you can tell......
?>