$foo = ''; foreach((array)$foo as $f){ echo 'xxx'; }
还会输出'xxx'......
php arrays foreach
arrays ×1
foreach ×1
php ×1