breadcrumb does not display title of the nav in Php
<p>I recently started learning php and I'm not being able to understand why my code does not get the parent value <strong>("Clients")</strong> when I click on the sublink UX/UI.</p>

<p>$sel_subject is the Titles on the Navbar and $sel_page is the subpage titles
When I click on the Title it shows up on the breadcrumb but when I click on the subpages the Title are blank, having issue with the following code.</p>

<pre><code> **$output_sub_nav .= "&lt;li&gt; {$sel_subject[ 'menu_name' ]}&lt;/li&gt;" ;**
</code></pre>

<p><strong>Navbar Image:</strong>
<img src="http://i.stack.imgur.com/3VFpT.png" alt="nav bar"></p>

<p><strong>My Code below:</strong></p>

<pre><code>function breadcrumbs ( $sel_subject ,$sel_page , $sel_rnav )
  {
  $output_sub_nav = "&lt;ul class =\"breadcrumbs\"&gt;" ;
  $output_sub_nav .= "&lt;li&gt;&lt;a href =\"index.php\"&gt;HOME&lt;/a&gt;&lt;/li&gt;" ;
  if ( ! is_null ( $sel_subject ) )
      {
      $output_sub_nav .= "&lt;li&gt; {$sel_subject[ 'menu_name' ]}&lt;/li&gt;" ;
      }
  elseif ( ! is_null ( $sel_page ) )
      {
      **$output_sub_nav .= "&lt;li&gt; {$sel_subject[ 'menu_name' ]}&lt;/li&gt;" ;**
      $output_sub_nav .= "&lt;li&gt; {$sel_page[ 'menu_name' ]}&lt;/li&gt;" ;
      }
  elseif ( ! is_null ( $sel_rnav ) )
      {
      $output_sub_nav .= "&lt;li&gt; {$sel_rnav[ 'menu_name' ]}&lt;/li&gt;" ;
      }
  $output_sub_nav .= "&lt;/ul&gt;" ;
  return $output_sub_nav ;
  }
</code></pre>
