• Home
  • PHP
  • Chart
  • Class
  • Components
  • Cookie Session
  • Data Structure
  • Data Type
  • Date
  • Design Patterns
  • Development
  • DNS
  • Email
  • File Directory
  • Form
  • Functions
  • Graphics Image
  • HTML
  • Language Basics
  • Login Authentication
  • Math
  • MySQL Database
  • Network
  • Operator
  • PDF
  • Reflection
  • Statement
  • String
  • Utility Function
  • Web Services SOAP WSDL
  • XML

wordwrap « String « PHP






  1. PHP
  2. String
  3. wordwrap
1.wordwrap() doesn't break at your line limit if a word has more characters than the limit.
2.wordwrap() has two more optional arguments: a number representing the maximum number of characters per line and a string representing the end of the line string.
3.wordwrap() requires one argument, the string to be transformed.
4.string wordwrap ( string str [, int line_length[, string break_char [, bool cut]]] )
5.string wordwrap ( string str [, int width [, string break [, bool cut]]] )
6.Wrapping Text
7.Supply 1 as a fourth parameter, which enables "cut" modewords over the limit will be cut up if this is enabled.

java2s.com  | © Demo Source and Support. All rights reserved.