"*.php" is a string literal; try `substr`