Parameter | Description |
---|---|
string | Required. Specifies the string to return a part of |
start | Required. Specifies where to start in the string |
length | Optional. Specifies the length of the returned string. Default is to the end of the string. |
<?php $string = "How to Limit Characters to Display in a String using PHP"; ?>
Parameter | Description |
---|---|
string | Required. Specifies the string to check |
replacement | Required. Specifies the string to insert |
start | Required. Specifies where to start replacing in the string |
length | Optional. Specifies how many characters should be replaced. Default is the same length as the string. |
<?php $string = "How to Limit Characters to Display in a String using PHP"; ?>