maybe not a justify function, but with a little creativity....

str_pad() will take the argument string and pad it to a new length with
another string... ( ...) so if you know how long you would like each
line or can figure it out... that could end up being a lot of extra little
characters though. messy and bigger. depending on the application, i am
sure there are cleaner ways of 'justifying.'


-----------------------------------------------
Brian Schneider     
[EMAIL PROTECTED] || [EMAIL PROTECTED]
WSU Mechanical Engineering      
-----------------------------------------------
"May the gods give you that which you deserve."
-----------------------------------------------


On Wed, 23 Jan 2002 at 4:41pm, Ben Sinclair cried forth in a loud voice saying:

> Yes, there is a function that "cleans up" carriage returns and line feeds by
> changing them to <BR>'s. There is no function to magically justifty text. Find
> some HTML documentation and output the HTML to justify your text.
> 
> --
> Ben Sinclair
> [EMAIL PROTECTED]
> ----- Original Message -----
> From: "Scott Fletcher" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 23, 2002 4:24 PM
> Subject: [PHP] What do you mean?
> 
> 
> > What do you mean?  There is a php function that can clean up the carriage
> > return and line feed.  There's a php function somewhere that will fix up the
> > amount of spaces for each lines to make the end of each line to be all
> > aligned.  So, what would it be?
> >
> > Thank,
> > Scott
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to