I have just generated some text into a HTML textarea using PHP but the formating is all over the place.
I would like to eliminate whitespace from the beginning of each line.
I have tried to justify 'left' but no luck.
Please help.
Thanksthe lounge is not the place to ask such questions. But anyway, you will probably need to provide some code, and explain a bit more detailed what the problem is.You're looking for the trim() (<!-- m --><a class="postlink" href="http://us2.php.net/manual/en/function.trim.php">http://us2.php.net/manual/en/function.trim.php</a><!-- m -->) function Originally posted by jbatty
I have just generated some text into a HTML textarea using PHP but the formating is all over the place.
I would like to eliminate whitespace from the beginning of each line.
I have tried to justify 'left' but no luck.
Please help.
Thanks
what is the code? and where is this text coming from?
I would like to eliminate whitespace from the beginning of each line.
I have tried to justify 'left' but no luck.
Please help.
Thanksthe lounge is not the place to ask such questions. But anyway, you will probably need to provide some code, and explain a bit more detailed what the problem is.You're looking for the trim() (<!-- m --><a class="postlink" href="http://us2.php.net/manual/en/function.trim.php">http://us2.php.net/manual/en/function.trim.php</a><!-- m -->) function Originally posted by jbatty
I have just generated some text into a HTML textarea using PHP but the formating is all over the place.
I would like to eliminate whitespace from the beginning of each line.
I have tried to justify 'left' but no luck.
Please help.
Thanks
what is the code? and where is this text coming from?