'Expecting statement' after echo
<p>So PHPStorm gives me a 'expecting statement' error after the following line:</p>

<pre><code>echo $values;
</code></pre>

<p>Here's the part in the code:</p>

<pre><code>&lt;?php
            if(!empty($_POST)){
                $values = implode(', ', array_intersect_key($_POST, $boxes));
                $txt = $_POST['Zoeken'];
                echo $values;
                ​
                ?&gt;
                &lt;br&gt;
                &lt;?php
                echo $txt;
            }
            ?&gt;
</code></pre>

<p>and this is the complete code (form):</p>

<pre><code>&lt;div id="filterList"&gt;
        &lt;?php $boxes = [
            'first_name' =&gt; ['label' =&gt; 'Voornaam', 'value' =&gt; 'a_Voornaam'],
            'last_name' =&gt; ['label' =&gt; 'Achternaam', 'value' =&gt; 'a_Achternaam'],
            'address' =&gt; ['label' =&gt; 'Adres', 'value' =&gt; 'a_Adres'],
            'city' =&gt; ['label' =&gt; 'Plaats', 'value' =&gt; 'a_Woonplaats'],
            'zipcode' =&gt; ['label' =&gt; 'Postcode', 'value' =&gt; 'a_Postcode'],
        ]; ?&gt;
        &lt;form name="filter"  style="float:left;" method="post"&gt;
            &lt;table&gt;
                &lt;?php foreach ($boxes as $name =&gt; $box) { ?&gt;
                    &lt;tr&gt;
                        &lt;td&gt;
                            &lt;label&gt;&lt;?php echo $box['label']; ?&gt;:&lt;/label&gt;
                        &lt;/td&gt;
                        &lt;td&gt;
                            &lt;input type="checkbox" name="&lt;?php echo $name; ?&gt;" id="inh" value="&lt;?php echo $box['value']; ?&gt;"/&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;?php } ?&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;label&gt;Zoeken&lt;/label&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;input type="text" name="Zoeken" /&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td&gt;
                        &lt;label style="margin-top:5px;"&gt;&lt;/label&gt;
                    &lt;/td&gt;
                    &lt;td&gt;
                        &lt;input id="submitfilter" type="submit" style="margin-top:5px;" class="btn"/&gt;
                    &lt;/td&gt;
                &lt;/tr&gt;
            &lt;/table&gt;
            &lt;?php
            if(!empty($_POST)){
                $values = implode(', ', array_intersect_key($_POST, $boxes));
                $txt = $_POST['Zoeken'];
                echo $values;
                ​
                ?&gt;
                &lt;br&gt;
                &lt;?php
                echo $txt;
            }
            ?&gt;
        &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>What could be the reason for the error?</p>