explode string at new line

From: Date: Wed, 06 Jun 2007 02:50:12 +0000
Subject: explode string at new line
Groups: php.general 
Request: Send a blank email to php-general+get-256148@lists.php.net to get a copy of this message
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. --------------------------------------------------------

Attachment: [application/pgp-signature]
« previous php.general (#256148) next »