this-> SubStr

(Caronte Pcode version 2.0)

SubStr -- Return part of a string

Description

string this-> SubStr ( string [string],int [start],int [length]);


Example.

Source:

CS_ANTISPAM_SCRIPT this = new CS_ANTISPAM_SCRIPT($_this);
string testo = "Dante Alighieri";
this->Print( this->SubStr(testo,0,5));


Out:

Dante