<?php $proposedName = "Is____super____valid"; $tokens = token_get_all("<?php $proposedName"); if ( isset($tokens[1]) && is_array($tokens[1]) && $tokens[1][0] !== T_STRING ) { print 'Invalid Name'; } else { print 'Valid Name'; }
You have javascript disabled. You will not be able to edit any code.