sometimes only 2 space characters count as space! I use the file_get_contents function, I need to split all the text into spaces, the problem is that there is a space in the text file, but the program does not consider it as a space, as soon as you add another space between words, what is the problem?

  • Show the code. And reformulate your question. I do not understand nifiga: ( - KryDos

1 answer 1

it seems to me that there is no space, it looks like a space - but the symbol is different. I met with such crap - was called from a sort of like an unbreakable space, read here and here

  • used the regular and mb_split ('\ s', $ text) function, replaced it with a simple explode and everything was fine divided - Vyacheslav Potapov