variable value is two strings
<p>Somehow a variable that SHOULD contain only one string (not an array or anything) contain an url, managed to contain two different values;</p>

<pre><code>string(8) "value 1 " string(7) "value 2"
</code></pre>

<p>i cannot use this variable because echoing it or using it in another function would print </p>

<pre><code>value 1 value2
</code></pre>

<p>which is not what i need, i need only value 1 and i cannot use $var[0]</p>

<p>Two things; how can i do something similar (one variable two strings), and how can i manipulate it.
EDIT : here is the code</p>

<pre><code>public function get_first_image($post) {
        $image_id=get_post_thumbnail_id($post-&gt;id);
        $image_url = wp_get_attachment_image_src($image_id,’large’);
        $image_url=$image_url[0];
        var_dump($image_url);
        return $image_url;
    }
</code></pre>

<p>the var_dump() results are as mentioned above</p>

<p>Best Regards</p>
