title: Get variable from a function
body: <p>I have two functions and i want to get a variable in the first function into the second one. My code is :</p>
  
  <pre><code>$adresse = array();
  
  function first( $atts ) {
  
      global $adresse;
      $atts = shortcode_atts( 
          array(
              'url' =&gt; '',
          ),
          $atts
      );
  
      $adresse['url'] = $atts['url'];
      return $adresse['url'];
  
  }
  
  
  function second() {
      global $adresse;
      echo $adresse['url'];
   }
  </code></pre>
  
  <p>I want to get result of adresse in the second function.
  Thanks for your help</p>