in reply to Re^2: substr outside of stringin thread substr outside of string
if (length($str) > $index) { $s = substr($str, $index, 1); } else { whatever else } [download]