We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 639827b commit 1cd9aa9Copy full SHA for 1cd9aa9
README.md
@@ -111,6 +111,12 @@ $snippet = (new CodeSnippet())
111
echo "Snippet line count: " . count($snippet->getLines()) . PHP_EOL;
112
```
113
114
+To return an array containing the line numbers for the snippet, use `getLineNumbers()`:
115
+
116
+```php
117
+print_r($snippet->getLineNumbers());
118
+```
119
120
### Returning the snippet as a string
121
122
Return the contents of the snippet as as string using the `toString()` method or by casting the snippet to a string directly:
0 commit comments