How can I recognise a

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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:


$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?

Re: How can I recognise a

I think is a good idea!!

I will try it tonight, I was too curious this morning and I am
checking the answer at work.


Site Timeline