Forum Moderators: coopster
Hi,
how are you?
nice meeting you
I stored the user input into a database and it comes out to be like this:
Hi, how are you? nice meeting you
I know that in C++, python and other languages, "Enter" can be detected by using read() with "/n" or readline().
However, the server that I am working on does not seem to have readline installed on it.
Whenever, I try to call readline, the server gives me this error:
Call to undefined function: readline()
So I was wondering if there is another way to detect "Enter" in php.
Best Regards
Opiston
I prefer not using <pre></pre>, as it might provoke the design of the CMS, if there is no overflow setting in the content container.
anyhow.. it's also \n, not /n.
You also have \t, etc.
it's good practice to use them, when parsing html via php.
example:
echo "<table>\n
<tr>\n
\t<td></td>\n
</tr>\n
</table>";
As this will make your source-code much easier to read, rather than having it all in one line.