截取字符串的有关问题

截取字符串的问题
index.php?do=login 如何获取?号前面的index.php

------解决方案--------------------
PHP code

echo    strtok("index.php?do=login", "?");