21,887
社区成员
发帖
与我相关
我的任务
分享
Array
(
[0] => ,title='测试上窜',titlepic='/ukinfo/d/file/house/other/2011-04-18/small97207890060e54843633227589c40db11303110292.jpg',smalltext='大师傅撒法撒法斯柯达发啊的',batype='住宅买卖',expire='2011-06-17',intro=''
[3] => ,contact='戴先生',email='test@test.com',phone='01133435800',qq='17589636'
[4] => 1
)
Array
(
[0] =>
[1] => title='测试上窜'
[2] => titlepic='/ukinfo/d/file/house/other/2011-04-18/small97207890060e54843633227589c40db11303110292.jpg'
[3] => smalltext='大师傅撒法撒法斯柯达发啊的'
[4] => batype='住宅买卖'
[5] => expire='2011-06-17'
[6] => intro=''
)
Array
(
[title] => \'dsfafdasfda\'
[titlepic] => \'/ukinfo/d/file/house/other/2011-04-19/smalld43d1cf05dde58234ff3d37e837fb6191303179196.jpg\'
[smalltext] => \'sdfasfsafa\'
[batype] => \'住宅买卖\'
[expire] => \'2011-06-18\'
[intro] => \'\'
)
$artp=stripslashes($ar[titlepic]);
echo $artp; //无论$ar[titlepic]是否有值都显示为''
$str = "titlepic='/ukinfo/d/file/house/other/2011-04-18/small97207890060e54843633227589c40db11303110292.jpg'";
$newstr = explode('=', $str);//再分一次
var_dump($newstr[1] == "''");//查看第二个元素值是否等于两个单眼号
$y = explode(x[0],'=');
if (y[1] == "''") echo '空值';