Dividing text into columns with PHP script
I prefer to display text so that it can be read easily, as a book. Naturally, web pages stretch the text across the entire width of the column, which is usually too wide for comfortable reading. Books are divided into narrower columns so you don’t lose your place when you get to the end of a line and move your eyes down to the next line.
Thankfully, I didn’t need to generate the script to divide text into columns completely from scratch. I only had to modify the code found on drupal.org.
Now I can easily convert an article or large block of text into multiple columns with a simple PHP function.
I made some updates today as requested on Babcock Bulldogs’ website using this function.
If you would like to view the code behind this function, click here.