I was looking for a Pascal equivalent for (for example) the php's substr function, which works like this:

$new_string = substr('abcdef', 1, 3);  // returns 'bcd'

I've already found it, but I always take excessively long to do so, so I'm posting the answer for others like me to be able to easily find it.

Edit
Report