title: PHP array as variable?
body: <p>I'm new to PHP, I have this code:</p>
  
  <pre><code>if(!$form['profile_hunter']['field_profile_hunter_location']['und']['0']['value']['#default_value']){
      $form['profile_hunter']['field_profile_hunter_location']['und']['0']['value']['#default_value'] = $default_city;
    }
  </code></pre>
  
  <p>it's working but I don't like it to be that long, so I change:</p>
  
  <pre><code>$form_location = $form['profile_hunter']['field_profile_hunter_location']['und']['0']['value']['#default_value'];
  if(!$form_location){
    $form_location = $city;
  }
  </code></pre>
  
  <p>Then it's not working, why?</p>