I tested it, and that's a valid break character.

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Ashley Sheridan wrote:
> I really don't think it does, and there's no mention of it on the man
> page for it, unless your break character is " <br/>" rather than just
> "<br/>"
>
> Ash
> www.ashleysheridan.co.uk
>   
>
> ------------------------------------------------------------------------
>
> Subject:
> Re: [PHP] Re: Breaking a line in two
> From:
> Micah Gersten <[EMAIL PROTECTED]>
> Date:
> Wed, 20 Aug 2008 11:32:03 -0500
> To:
> [EMAIL PROTECTED]
>
> To:
> [EMAIL PROTECTED]
> CC:
> PHP General <php-general@lists.php.net>
>
>
> Wordwrap can still keep the space and add the <br />.
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> Ashley Sheridan wrote:
>   
>> In HTML it is, I agree, irrelevant with regards to display, but the
>> string could be going into an XML file, where the space has some
>> importance, and as Ron (the original person who asked the question)
>> asked specifically for the space to be preserved in the string, I
>> answered the question for him. I only added afterwards here that the
>> wordwrap function wasn't going to cut it as the topic got trolled up.
>>
>> Ash
>> www.ashleysheridan.co.uk
>>
>>
>> ------------------------------------------------------------------------
>>
>> Subject:
>> Re: [PHP] Re: Breaking a line in two
>> From:
>> Micah Gersten <[EMAIL PROTECTED]>
>> Date:
>> Wed, 20 Aug 2008 11:24:06 -0500
>> To:
>> [EMAIL PROTECTED], PHP General <php-general@lists.php.net>
>>
>> To:
>> [EMAIL PROTECTED], PHP General <php-general@lists.php.net>
>>
>>
>> Actually, in HTML the space is irrelevant if you are breaking the line.
>>
>> Thank you,
>> Micah Gersten
>> onShore Networks 
>> Internal Developer
>> http://www.onshore.com
>>
>>
>> Ashley Sheridan wrote:
>>   
>>     
>>> Unfortunately, the wordwrap function won't do what he needs. He needed
>>> to add a <br/> *after* the space, and not replace the space.
>>>
>>> Ash
>>> www.ashleysheridan.co.uk
>>>   
>>>
>>> ------------------------------------------------------------------------
>>>
>>> Subject:
>>> Re: [PHP] Re: Breaking a line in two
>>> From:
>>> Micah Gersten <[EMAIL PROTECTED]>
>>> Date:
>>> Wed, 20 Aug 2008 10:49:49 -0500
>>> To:
>>> php-general@lists.php.net
>>>
>>> To:
>>> php-general@lists.php.net
>>>
>>>
>>> If you use wordwrap, you don't need nl2br.  See Example 1 for wordwrap.
>>>
>>> Thank you,
>>> Micah Gersten
>>> onShore Networks
>>> Internal Developer
>>> http://www.onshore.com
>>>
>>>
>>>
>>> Lupus Michaelis wrote:
>>>   
>>>     
>>>       
>>>> Ron Piggott a écrit :
>>>>
>>>>     
>>>>       
>>>>         
>>>>> This is 23 characters long.  I want <br> added after the 12th character,
>>>>> following the first space:
>>>>>       
>>>>>         
>>>>>           
>>>>   I guess you want to use wordwrap <http://www.php.net/wordwrap> and
>>>> nl2br <http://www.php.net/nl2br>.
>>>>
>>>>     
>>>>       
>>>>         
>>>   
>>>     
>>>       
>>   
>>     

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to