routing in javascript or php function
<p>I was wondering if there is a way of doing this:</p>

<p>let's say I'm calling this method:</p>

<p><code>object.segment1_segment2_segment3();</code></p>

<pre><code>// or 
$object-&gt;segment1_segment2_segment3();
</code></pre>

<p>What you have to know is that segment1_segment2_segment3() is not necessarily an existing method, and I want my program to guess which existing function to call, based on the segments in the object's method.</p>

<p>I don't know if i'm clear enough but, I would like to know if you think it's possible, and what would be the cleanest way to do such a MAGIC thing ^^</p>

<p>good day to you mister reader ^^</p>
