title: preg_replace dynamic regular exp variable not working
body: <p>this the array which are used in the loop. the first foreach for numeric array and second array is for the associative array.</p>
  
  <pre><code> Array
  (
      [3] =&gt; Array
          (
              [CORPORATEID] =&gt; 3
              [menuRightBorder] =&gt; 7DFFEB
              [menuTextColor] =&gt; FF00C8
              [submenuTextColorHover] =&gt; 666666
              [buttonBg] =&gt; F6FDFE
              [widgetBg] =&gt; FFFFFF
              [helpContainerBg] =&gt; FCFCFC
              [menuBg] =&gt; 3BFF4B
              [menuHover] =&gt; 717171
              [submenuTextColor] =&gt; EBEBEB
              [innerSubmenuTextColorHover] =&gt; 661010
              [iconColor] =&gt; 661304
              [widgetTickColor] =&gt; FFFFFF
              [helpContainerHelpTextColor] =&gt; 21FF59
          )
  
      [0] =&gt; Array
          (
              [CORPORATEID] =&gt; 0
              [menuRightBorder] =&gt; ff0000
              [menuTextColor] =&gt; fff
              [submenuTextColorHover] =&gt; 003366
              [buttonBg] =&gt; fe0000
              [widgetBg] =&gt; ff0000
              [helpContainerBg] =&gt; cfdffc
              [menuBg] =&gt; ff0000
              [menuHover] =&gt; 054271
              [submenuTextColor] =&gt; fff
              [innerSubmenuTextColorHover] =&gt; 003366
              [iconColor] =&gt; 003366
              [widgetTickColor] =&gt; ff0000
              [helpContainerHelpTextColor] =&gt; 000
          )
  
  )
  
  
      foreach($_Aarray as $value) {
      foreach ($value as $key =&gt; $innervalue) {
           $css=preg_replace('~\b'.$key.'\b~',$innervalue,$cssContent);
      }
  }
  </code></pre>
  
  <p>In the above code preg_replace the regular expression does not replace in the $cssContent. </p>