PHP » GoLang |
login |
register |
about
|
GoLang SplFileObject::setMaxLineLen
request it (401)
GoLang replacement for PHP's SplFileObject::setMaxLineLen
[edit | history]
PHP SplFileObject::setMaxLineLenPHP original manual for SplFileObject::setMaxLineLen [ show | php.net ]SplFileObject::setMaxLineLen(PHP 5 >= 5.1.0, PHP 7) SplFileObject::setMaxLineLen — Set maximum line length Description
public void SplFileObject::setMaxLineLen
( int
$max_len
)Sets the maximum length of a line to be read. Parameters
Return ValuesNo value is returned. Errors/Exceptions
Throws DomainException when
Examples
Example #1 SplFileObject::setMaxLineLen() example
<?php Contents of lipsum.txt Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis nec sapien felis, ac sodales nisl. Nulla vitae magna vitae purus aliquet consequat. The above example will output something similar to: Lorem ipsum dolor s it amet, consectetu r adipiscing elit. Duis nec sapien fel is, ac sodales nisl . Nulla vitae magna v itae purus aliquet consequat. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|