substr() public method
Return part of a file.
public string|false substr ( $start, $length ) | ||
---|---|---|
$start | integer |
Reading start position. If non-negative, the returned string will start at the start'th position in file, counting from zero. If negative, the returned string will start at the start'th character from the end of file. |
$length | integer |
Number of bytes to read. If given and is positive, the string returned will contain at most length characters beginning from start (depending on the length of file). If given and is negative, then that many characters will be omitted from the end of file (after the start position has been calculated when a start is negative). |
return | string|false |
The extracted part of file or |
Please login to continue.