<?php $str = 'a12'; $secondchar = substr($str, 1, 1); if (!is_string($secondchar)) { echo $secondchar . ' is a not string'; } else { echo $secondchar . ' is a string'; }
You have javascript disabled. You will not be able to edit any code.