Jump to content

Array Problem


eugene2009

Recommended Posts

My array results keep displaying like this. I want it to just display the numbers in the quotations. any help?

 

array ( 0 => '4396', )
array ( 0 => '3934', )
array ( 0 => '5063', )
array ( 0 => '4394', )
array ( 0 => '3936', )
array ( 0 => '4393', )
array ( 0 => '4395', )
array ( 0 => '5064', )
array ( 0 => '5062', )
array ( 0 => '4224', )
array ( 0 => '3322', )
array ( 0 => '3321', )
array ( 0 => '3320', )
array ( 0 => '3725', )

Link to comment
https://forums.phpfreaks.com/topic/229661-array-problem/
Share on other sites

preg_match_all('|<img src="/images/product/icon/(.+?).jpg|', $str, $matches);


	foreach ($matches[0] as $select) {

  			  preg_match_all('|<img src="/images/product/icon/(.+?).jpg|', $select, $matches2);


							var_export($matches2[1]);


    
    							echo '<br>';

}

Link to comment
https://forums.phpfreaks.com/topic/229661-array-problem/#findComment-1183206
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.