Php substring extraction. Getting strings before - and without -
<p>I want to ask, how can I get text before ----(Don't need abc text in this variable) and text that does not contain ----. For example:</p>

<pre><code>"text text text text ---- abc text",

"text text text text"
</code></pre>

<p>For first variable i want to get only </p>

<pre><code>"text text text text"
"text text text text
</code></pre>

<p>For second variable I want to get only text after</p>

<pre><code>"abc text"
</code></pre>

<p>I want to get 2 variables first with only "text text text text" inside (text before ---- from both, that does not contain ---- and text after) and other variable text only after ----. 
How can I do so? 
Thanks.</p>