Make second parameter of substr optional

This commit is contained in:
Tomasz Chabora
2019-05-03 14:21:04 +02:00
parent 913620a9b8
commit 0b8a785539
4 changed files with 7 additions and 4 deletions

View File

@@ -748,10 +748,10 @@
</return>
<argument index="0" name="from" type="int">
</argument>
<argument index="1" name="len" type="int">
<argument index="1" name="len" type="int" default="-1">
</argument>
<description>
Returns part of the string from the position [code]from[/code] with length [code]len[/code].
Returns part of the string from the position [code]from[/code] with length [code]len[/code]. Argument [code]len[/code] is optional and using -1 will return remaining characters from given position.
</description>
</method>
<method name="to_ascii">