19.11.2018, 17:00
Eh, I think that function won't do what you want.
Try this:
So you can convert "\n" into "|n" and you can save this into your mysql database. When you read this and save it in a string you convert it to "\n" back.
Try this:
PHP код:
ReplaceNewString(string[])
{
for(new i;strlen(string) < i;i++)
{
if(string[i] == '|' && string[i+1] == 'n')string[i] = '\';
else if(string[i] == '\' && string[i+1] == 'n')string[i] = '|';
}
}