title: php get level of url
body: <p>I am a complete PHP novice, and am just doing some themeing in Drupal. Just wondered if this was possible:</p>
  
  <p>e.g.</p>
  
  <p><code>http://xxxxxxxxxx.com/conference-events</code>, gives:</p>
  
  <pre><code>&lt;body id="conference-events" class="level1"&gt;
  </code></pre>
  
  <p><code>http://xxxxxxxxxx.com/conference-events/rooms-capacities</code>, gives:</p>
  
  <pre><code>&lt;body id="conference-events" class="rooms-capacities level2"&gt;
  </code></pre>
  
  <p><code>http://xxxxxxxxxx.com/conference-events/rooms-capacities/bob</code>, gives:</p>
  
  <pre><code>&lt;body id="conference-events" class="bob level3"&gt;
  </code></pre>
  
  <p>basically i have the code for the ID/first class, but is it possible to grab the level with php?</p>
  
  <p>A.</p>