substr()

From Hack Wars Wiki

Jump to: navigation, search
Information for free function substr()
Function substr(string s, int start, int finish)
API Attacking, Banking, FTP, Watch, HTTP, Challenges, Hacktendo
Description Returns a substring starting at index 'start' and ending at the index 'finish'-1.


[edit] Example

string hello="Hello world!";
string sub=substr(hello, 0, 5);
setOutputString(sub);


Output:

 "Hello"
Personal tools