$arr =array (); $arr [' ImagePath ']= '; $arr [' Size1 ']= '; $arr [' Imageapath ']= ' "; $arr [' Image2path ']= '"; $arr [' Size33 ']= ""; $arr [' Image5path ']= ""; $arr [' Size55 ']= ""; $arr [' Imagebbpath ']= ""; $arr [' Imageccpath ']= ' "; $arr [' Size555 ']= '"; $ arr[' Imageqqpath ']= ""; $arr [' Image99path ']= ""; $arr [' Imageeepath ']= ""; $arr [' Imageppath ']= ' "; $arr [' Size66 ']= '"; $ Url= '/'; $arr [' ImagePath ']= $url; $arr [' Imageapath ']= $url; $arr [' Image2path ']= $url; $arr [' Image5path ']= $url; $arr [' Imagebbpath ']= $url, $arr [' Imageccpath ']= $url; $arr [' Imageqqpath ']= $url; $arr [' Image99path ']= $url; $arr [' Imageeepath ']= $url; $arr [' Imageppath ']= $url;
Reply to discussion (solution)
The landlord's question is?
$arr =array (); $arr [' ImagePath ']= '; $arr [' Size1 ']= '; $arr [' Imageapath ']= ' "; $arr [' Image2path ']= '"; $arr [' Size33 ']= ""; $arr [' Image5path ']= ""; $arr [' Size55 ']= ""; $arr [' Imagebbpath ']= ""; $arr [' Imageccpath ']= ' "; $arr [' Size555 ']= '"; $ arr[' Imageqqpath ']= ""; $arr [' Image99path ']= ""; $arr [' Imageeepath ']= ""; $arr [' Imageppath ']= ' "; $arr [' Size66 ']= '"; $ Url= '/'; $arr [' ImagePath ']= $url; $arr [' Imageapath ']= $url; $arr [' Image2path ']= $url; $arr [' Image5path ']= $url; $arr [' Imagebbpath ']= $url, $arr [' Imageccpath ']= $url; $arr [' Imageqqpath ']= $url; $arr [' Image99path ']= $url; $arr [' Imageeepath ']= $url; $arr [' Imageppath ']= $url;
This assignment seems a little weird.
The landlord's question is?
This assignment seems a little weird.
$url = '/';
$arr [' ImagePath ']= $url;
$arr [' Imageapath ']= $url;
$arr [' Image2path ']= $url;
$arr [' Image5path ']= $url;
$arr [' Imagebbpath ']= $url;
$arr [' Imageccpath ']= $url;
$arr [' Imageqqpath ']= $url;
$arr [' Image99path ']= $url;
$arr [' Imageeepath ']= $url;
$arr [' Imageppath ']= $url;
What's so weird about that?
And it looks pretty clear.
foreach ($ar as $k =?& $v) if (substr ($k,-4) = = ' Path ') $v = $url;
What's so weird about that?
And it looks pretty clear.
foreach ($ar as $k =?& $v) if (substr ($k,-4) = = ' Path ') $v = $url;
Ask
$k =?& $v??
$k =>& $v
Sorry, the wrong button was pressed.
$k =>& $v
Sorry, the wrong button was pressed.
Address reference, I didn't think!!!!! Good idea!
No reference is the same.
foreach ($ar as $k + $v) if (substr ($k,-4) = = ' Path ') $ar [$k] = $url;
$val) { if (substr ($key, 0,5) = = ' image ') { $arr [$key] = $url; }} Print_r ($arr);? >