I have a div which has a fluid width, thus I cannot predict its size in PHP. If someone enters a long string which isn\'t delimited by spaces anywhere, the browser will stretch
This works for me:
ini_set("display_errors", TRUE); error_reporting(-1 ^ E_NOTICE); header("Content-Type: text/html; charset=utf-8"); $line = "This is a test. Hello, Stackoverflow! This ought to trigger a couple of breaks"; $line = wordwrap($line, 10, "\n", true); ?> Linebreak Test =$line?>