1
stdClass Object
(
[tip1] => Array
(
[text] => <p>Test text</p>
[format] => 1
)
)
我试图对象物体的循环与数组在php stdClass中使用变量名访问数组?
for ($i=1;$i<=10;$i++)
{
echo $fromform->{'tip$i'}['text'];
}
从来没有做过?
非常感谢你救了我一天, – MMSA 2013-05-13 08:54:35
很高兴帮助你:) – Rikesh 2013-05-13 08:56:10