我是PHP的初学者.我有字符串:
$fullstring = "this is [tag]dog[/tag], [tag]cat[/tag], [tag]lion[/tag]";
我想"cat"从我的字符串中获取字符串$fullstring.
"cat"
$fullstring
我曾经试过这个:
获取两个字符串PHP之间的子串
但我只能得到第一个字符串(dog).感谢您的时间.
(dog)
Thet Cartter.
php windows
php ×1
windows ×1