Re: explode string at new line
| From: | heavyccasey at gmail dot com | Date: | Wed, 06 Jun 2007 02:52:16 +0000 |
| Subject: | Re: explode string at new line | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256149@lists.php.net to get a copy of this message | ||
That's exactly correct. Except I /think/ you should use "\n" instead of '\n'.
On 6/5/07, Davi <davividal@siscompar.com.br> wrote:
Hi all. I've the fowlling string: $_POST["my_text"]="hi...\nthis is my multi-line\ntext"; Can I use explode to have something like: $str[0]="hi..."; $str[1]="this is my multi-line"; $str[2]="text"; $str=explode($_POST["my_text"],'\n'); TIA and sorry the *very* poor english. -- Davi Vidal davividal@siscompar.com.br davividal@gmail.com -- "Religion, ideology, resources, land, spite, love or "just because"... No matter how pathetic the reason, it's enough to start a war. " -------------------------------------------------------- Por favor não faça top-posting, coloque a sua resposta abaixo desta linha. Please don't do top-posting, put your reply below the following line. --------------------------------------------------------