src/TextExtension.php
public function line($value, $line = 1)
    {
        if (!isset($value)) {
            return null;
        }
        
        $lines = explode("\n", $value);
        
        return isset($lines[$line - 1]) ? $lines[$line - 1] : null;
    }
public function line($value, $line = 1)
    {
        if (!isset($value)) {
            return null;
        }
        
        $lines = explode("\n", $value);
        
        return isset($lines[$line - 1]) ? $lines[$line - 1] : null;
    }
public function line ( $ value , $ line = 1 ) { if ( ! isset ( $ value ) ) { return null ; } $ lines = explode ( "\n" , $ value ) ; return isset ( $ lines [ $ line - 1 ] ) ? $ lines [ $ line - 1 ] : null ; }
Get a single line

@param string $value
@param int    $line   Line number (starts at 1)
@return string
Get a single line