【发布时间】:2012-10-03 14:41:21
【问题描述】:
我正在寻找位于字符串中的数据,如下所示:
string(22) "width="16" height="16""
我希望使用explode 函数来获取16 和16 的值并将它们放入我可以使用的数组中。但我不知道如何在 PHP 的explode 函数中定位$num。通常我只有一个可以使用的逗号。
类似这样,但我知道这是错误的:
$size = "width="16" height="16""
$sizes = explode('""', $size);
所有这些都是:array(1) { [0]=> string(5) "Array" }
【问题讨论】: