title: Observer Pattern Logic Without OOP?
body: <p>I was thinking about implementing a logic similar to observer pattern on my website, for implementing hooks.</p>
  
  <p>What I am looking for is something similar to this <a href="https://stackoverflow.com/questions/42/best-way-to-allow-plugins-for-a-php-application">Best way to allow plugins for a PHP application</a></p>
  
  <p>However the code there is too limited, as I cant attach multiple hooks to same listener.</p>
  
  <p>I am clueless about how to amplify that code to make it able to listen multiple actions at one event.</p>
  
  <p>Thank You</p>