Hi!
I would like to make an algorith that recognise a Forced line break in
HTML or a normal text. For instance, I would like to store in one
array different lines of a string.
Here my attempt:
<?php
$line = "Pemberton Valley, Ayr
Available: Now
This property forms a three bedroom detached villa. It is offered on
an unfurnished basis. Please note that this property is not available
until the middle of December.
";
$explode = split(' ', $line);
?????????
I would like the first line of my string in the first element of the
array, the second line in the second element and so on...
If I put <BR> instead ' ' doesn t work.
Please, can you help me?
Cheer
Manuel
I would like to make an algorith that recognise a Forced line break in
HTML or a normal text. For instance, I would like to store in one
array different lines of a string.
Here my attempt:
<?php
$line = "Pemberton Valley, Ayr
Available: Now
This property forms a three bedroom detached villa. It is offered on
an unfurnished basis. Please note that this property is not available
until the middle of December.
";
$explode = split(' ', $line);
?????????
I would like the first line of my string in the first element of the
array, the second line in the second element and so on...
If I put <BR> instead ' ' doesn t work.
Please, can you help me?
Cheer
Manuel
Comment