How many else if statements should we use?
<p>I have a PHP file <code>ajax.php</code> where i always send my ajax to. There are about 50 else if statements in the code. I always pass a POST Parameter <code>cmd</code> to my <code>ajax.php</code> file and check if the variable is set and execute different code depending on the variable content.</p>

<p>I was wondering if i should rather split my <code>ajax.php</code> to multiple files to reduce the amount of <code>else if</code> statements and increase performance. But how many <code>else if</code> are we recommended to use and does it have a big impact on performance if we use e.g. 10000?</p>