title: PHP: call function by text in var?
body: <p>I want to make a plugin system for my simple cms. I need to execute some code if some text construction like [call=plugin1] is found in 'page.html'. The content of this page is read and stored in variable.</p>
  
  <pre><code>$page_content= '&lt;div&gt;the result of function [call=plugin1] &lt;/div&gt;';
   //some code to embed the result of fn 
   echo  $page_content; //finally
  </code></pre>