The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Stripping line breaks from a string - ereg_replace & str_replace
I have a problem with a script in that the script saved line breaks between values that were saved. Well, the script was written that way for another purpose but now it is causing me issues...
I know I can take normal text like this and remove the /n's $myvalues = 'cars/ntrucks/nautomibiles'; Using code like this: $myvalues = ereg_replace('/n', '', $myvalues); HOWEVER, I do not know how to remove LINE BREAKS which I assume would be \n in the data? For example: PHP Code:
Quote:
EDIT to change the title to help someone else that may search this! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|