Return to Snippet

Revision: 356
at July 10, 2006 23:15 by katxorro70


Initial Code
<?php
$lines = preg_split('/[\n\r]+/', $input_several_lines_long, $max_lines);
?>

Initial URL
http://www.php.net

Initial Description
This function split a several lines long text into an array. It works with Windows and Linux texts.

Initial Title
Split several lines long text

Initial Tags
php

Initial Language
PHP