When I’m using:
echo wordwrap($post['text']);
the page appears blank (exactly as in case if the error_reporting or display_errors in php.ini are disabled, but they’re enabled , so thats not an error).
I don’t really know why it happens.
When I use:
echo $post['text'];
It is showing up my text fine. Where is the problem?
edited
Now, when I use:
$text = wordwrap ($post['text']);
echo $text;
The function doesn’t seems to work, because I still see one long line filled with aaaaaaaa[...] and it don’t wrap my text.
I see that you have looooooong text with no space in it. The way wordwrap work is by breaking it using space. If you want to force it to split text even if it has no space or in the middle of the word, you have to tell wordwrap to do so:
Read the official documentation for more detail.