Contact: aviboots(AT)netvision.net.il
39,880 questions
51,806 answers
573 users
// substr(string $string, int $offset, ?int $length = null): string $str = "abcdefgh"; echo substr($str, 3) . "\n"; echo substr($str, 3, 2) . "\n"; echo substr($str, -2) . "\n"; echo substr($str, -4, 1) . "\n"; /* run: defgh de gh e */