Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating resource.
Please try to avoid dependencies to third-party libraries and frameworks.
Implementation edit is for fixing errors and enhancing with metadata.
Instead of changing the code of the snippet, consider creating another PHP implementation.
String t = s.substring(i,j);
t = s[i..j-1]
t = s[i:j]
var t = s.substring(i, j);
my $chunk = substr("now is the time", $i, $j);
let t = s.substring(i, j);
auto t = s[i .. j];
t := copy(s,i+1,j-i);
t = drop i (take j s)
t = String.slice(s, i..j-1)
T = string:sub_string(I, J-1).
t := string([]rune(s)[i:j])
t = s:sub(i, j-1)
var t = s.Substring(i, j - i);
T : String := S (I .. J - 1);
(setf u (subseq s i j))
character(len=:), allocatable :: t t = s(i:j-1)
(def t (subs s i j))
Dim t As String = s.Substring(i,j)
let t = s.slice(i, j);
def t = s[i..<j]