RAD function: strdel

A RAD function that deletes a number of characters from a specific location in a string.

Function

strdel

Format

$L.void=strdel($string, $index, $number)

Parameters

The following parameters are valid for the strdel function:
ParameterData typeDescription
$L.void=Not applicable.A syntax requirement only, does not affect the outcome of the function.
$stringStringThe string being modified.
$indexNumberThe location in $string from which characters are to be deleted.
$numberNumberThe number of characters to delete from $string.

Example

$string="Hewlett-Packard"
$index=6
$number=8
$L.void=strdel($string, $index, $number)

After execution, the value of $string is Hewletd.