我希望在针发生之后得到字符串的第一位...
$user = strstr('someemail@yahoo.com', '@', true);
但这只适用于PHP版本5.3.0,我有5.2.9有没有办法可以获得相同的结果?
php strstr
php ×1
strstr ×1