Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Fix the Height and width of the table so as to get the wrapped up data into the table...</p> <p>Also you can use <code>wordwrap</code> function Wraps a string to a given number of characters using a string break character.</p> <p>syntax: <code>string wordwrap ( string $str [, int $width = 75 [, string $break = "\n" [, bool $cut = false ]]] )</code></p> <pre><code>str The input string. width The column width. break The line is broken using the optional break parameter. cut If the cut is set to TRUE, the string is always wrapped at or before the specified width. So if you have a word that is larger than the given width, it is broken apart. (See second example). Returns the given string wrapped at the specified column. </code></pre> <blockquote> <p><strong>UPDATED REPLY</strong></p> </blockquote> <p>As per your edited question it's better for you to use word wrap as I have explained above.. </p> <p>For Example:</p> <pre><code>&lt;?php $text = "Typoking wants to know about "Php html table is too wide"."; $newtext = wordwrap($text, 20, "&lt;br /&gt;\n"); echo $newtext; ?&gt; The above example will output: Typoking wants to kn&lt;br /&gt; ow about "Php html t&lt;br /&gt; able is too wide". </code></pre> <p>For more information go to : <a href="http://php.net/manual/en/function.wordwrap.php" rel="nofollow noreferrer">PHP.net</a></p> <blockquote> <p><strong>EDITED</strong></p> </blockquote> <p>As per your CSS issue, open up your css file, and write "<code>!important</code>" beside the class which is being used by "<code>&lt;td&gt;</code>". This will prefer your CSS class to apply than inline style. Also provide the way you are applying the word-wrap...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload