Parse content and push in array
<p>I fetches content from my .php file and want to push in an array the fetched result is something like:</p>

<pre><code>//english error

$lang['error_incorrect_login'] = "The username or password doesn't match. Please try again";

$lang['error_user_exist'] = "The Username already exist in database. Please try using a different Username";

$lang['error_email_exist'] = "Email address already exist in database";
</code></pre>

<p>this is the actual content of my .php file</p>

<p>and I need result array like:</p>

<pre><code>array(
    ['error_incorrect_login'] = "The username or password doesn't match. Please try again",
    ['error_user_exist'] = "The Username already exist in database. Please try using a different Username",
    ['error_email_exist'] = "Email address already exist in database"
);
</code></pre>

<p>I actually want to parse </p>

<pre><code>$lang['error_incorrect_login'] = The username or password doesn't match. Please try again";
</code></pre>

<p>type of statements &amp; push in to an array like.</p>

<pre><code>array(
        ['error_incorrect_login'] = "The username or password doesn't match. Please try again",
        ['error_user_exist'] = "The Username already exist in database. Please try using a different Username",
        ['error_email_exist'] = "Email address already exist in database"
    );
</code></pre>
