Change Height and width dynamically of any tag or object in php
<?php echo preg_replace("#(width|height)=[\'\"](\d)+[\'\"]#ies","(strtolower('\\1')=='width') ?
\"\\1='277'\":\"\\1='252'\"",$string)."\r\n"; ?>
Magento, OpenCart, Joomla, wordpress, PHPBB, Core PHP, jQuery, Javascript professional elancer.
Home » Posts filed under replace width and height of html element using regular expression