Re: explode string at new line
| From: | Davi | Date: | Wed, 06 Jun 2007 02:57:25 +0000 |
| Subject: | Re: explode string at new line | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256150@lists.php.net to get a copy of this message | ||
Em Terça 05 Junho 2007 23:52, heavyccasey@gmail.com escreveu:
> That's exactly correct. Except I /think/ you should use "\n" instead of
> '\n'.
>
Thank you for the reply... =)
I'll check this... BTW:
array explode ( string $delimiter, string $string [, int $limit] )
So, I was wrong...
The right way, probaly, is:
$str=explode("\n",$_POST["my_text"]);
Thank you very much.
--
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]
Attachment: [application/pgp-signature]