title: Function with single parameter does not seem to run/return correctly
body: <p>I've had a quick browse, and I'm hoping this isn't a duplicate, because as far as I can tell, my code looks correct and I've performed everything that is covered in other questions.</p>
  
  <p>I have a function in an external file, which I include with PHP:</p>
  
  <pre><code>include("functions.php");
  </code></pre>
  
  <p>The contents of that file are as follows (condensed to one <code>if</code>):</p>
  
  <pre><code>function tidyWebsiteBrand($ukip_name) {
      if (strpos($ukip_name,"International") !== false) {
          $ukip_name = substr($ukip_name,0,-14);
      }
      return $ukip_name;
  }
  </code></pre>
  
  <p>I think call that function in my code, with the parameter <code>$ukip_name</code>:</p>
  
  <pre><code>while ($bq = mysql_fetch_assoc($brand_query)) {
      $ukip_code = $bq['ukip_code'];
      $ukip_name = $bq['ukip_name'];
      tidyWebsiteBrand($ukip_name);
      ?&gt;
      &lt;option value="&lt;?=$ukip_code?&gt;"&gt;&lt;?=$ukip_name?&gt;&lt;/option&gt;
      &lt;?php
  }
  </code></pre>
  
  <p>However the <code>&lt;option&gt;</code> still displays the "pre-function" text, as opposed to the "post-function" text.</p>
  
  <p>Expected result: <code>"Automotive Testing"</code></p>
  
  <p>Actual result: <code>"Automotive Testing International"</code></p>
  
  <p>Where am I going wrong?</p>