title: Get object name as string on php?
body: <p>So I got this source code </p>
  
  <pre><code>//get activated bundles
  $bundle_list = new AutoRouter('dev',true);
  $bundle_list = $bundle_list-&gt;getActivatedBundles(); 
  
  for($a =0; $a &lt; sizeof($bundle_list); $a++)
  {
      var_dump($bundle_list[$a]);
  }
  </code></pre>
  
  <p>The dump returns several objects like this </p>
  
  <pre><code>object(Symfony\Bundle\FrameworkBundle\FrameworkBundle)[38]
    protected 'name' =&gt; null
    protected 'extension' =&gt; null
    protected 'path' =&gt; null
    protected 'container' =&gt; null
  
  object(Symfony\Bundle\SecurityBundle\SecurityBundle)[41]
    protected 'name' =&gt; null
    protected 'extension' =&gt; null
    protected 'path' =&gt; null
    protected 'container' =&gt; null
  
  object(Symfony\Bundle\TwigBundle\TwigBundle)[40]
    protected 'name' =&gt; null
    protected 'extension' =&gt; null
    protected 'path' =&gt; null
    protected 'container' =&gt; null
  </code></pre>
  
  <p>I need to extract the object names as string like this: </p>
  
  <pre><code>(string) "Symfony\Bundle\FrameworkBundle\FrameworkBundle"
  (string) "Symfony\Bundle\SecurityBundle\SecurityBundle"
  (string) "Symfony\Bundle\TwigBundle\TwigBundle"
  </code></pre>
  
  <p>Something like </p>
  
  <pre><code>for($a =0; $a &lt; sizeof($bundle_list); $a++)
  {
      var_dump((string) $bundle_list[$a]);
  }
  </code></pre>