title: Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in
body: <p>I need a little help. Because <code>preg_replace</code> is deprecated, I have to convert all <code>my preg_replace</code> to <code>preg_replace_callback</code>...</p>
  
  <p>What I've tried:</p>
  
  <p>Change:</p>
  
  <pre><code>$template = preg_replace ( "#\\[aviable=(.+?)\\](.*?)\\[/aviable\\]#ies", "\$this-&gt;check_module('\\1', '\\2')", $template );
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>$template = preg_replace_callback ( "#\\[aviable=(.+?)\\](.*?)\\[/aviable\\]#isu", 
                  return $this-&gt;check_module($this['1'], $this['2']);
              $template );
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Parse error: syntax error, unexpected 'return' 
  </code></pre>