确定以明确病举一个例子有没有PHP函数来查找中间字符串?
$email = '[email protected]';
$domain = strstr($email, '@');
echo $domain; // prints @example.com
$user = strstr($email, '@', true); // As of PHP 5.3.0
echo $user; // prints name
,因为它说,它之前打印什么“@”用真实的,空白打印接下来@
即时寻找一个功能打印@本身给它2串并抢他们之间有什么
这样
$string= 'someXthing';
$tograb = phpfunction("some","thing");
echo $tograb; // should be printing X
^这并不工作,我只是写我吨至讲解
我真的很想看到一个你可以使用它的情况。此外,只需使用正则表达式 – Ibu 2012-04-13 17:38:39
你需要的是一个正则表达式 – 2012-04-13 17:39:41
检查这个线程http://stackoverflow.com/questions/1445506/get-content-between-two-strings-php – 2012-04-13 17:40:46