Posted By

katxorro70 on 07/10/06


Tagged

php


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

mate
meth
postNuKe
jonbaer
vali29


Split several lines long text


 / Published in: PHP
 

URL: http://www.php.net

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

  1. <?php
  2. $lines = preg_split('/[\n\r]+/', $input_several_lines_long, $max_lines);
  3. ?>

Report this snippet  

You need to login to post a comment.