Topic: can someone help with the error in this code?

 } else {
                                        echo '<img src="'. wc_placeholder_img_src() .'" alt="Placeholder" width="'.wc_get_image_size('shop_thumbnail_image_width')['width'].'" height="'.wc_get_image_size('shop_thumbnail_image_height')['height'].'" />';
                                    } ?>

Thumbs up

Re: can someone help with the error in this code?

Sorry this is the error Im receiving:
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /home/kingzden/public_html/wp-content/themes/porto/inc/functions/woocommerce.php on line 375

Thumbs up