title: Append/delete items from array in php/html file
body: <p>I am a PHP beginner and need some help. </p>
  
  <p>I have a <code>config.data</code> file that has the $logins array serialized in it. (thanks @Barmar!) 
  I have <code>signin.php</code> (below) which I would like to modify in the following way:</p>
  
  <ol>
  <li>Add a 'add project' button which would append the info to the $logins array</li>
  <li>Add a 'delete project' button which would delete the info to the $logins array.</li>
  </ol>
  
  <p>Any help to accomplish these two goals would be appreciated!</p>
  
  <p><code>config.data</code>:</p>
  
  <pre><code>$logins = array(
  'project1' =&gt;
          array(
          'password' =&gt; 'mypassword',
          'title' =&gt; 'Capacitors Project Planner',
          'emails' =&gt; array('myweb@mywebsite.com')
           ),
  'project2' =&gt;
      array(
          'password' =&gt; 'mypassword2',
          'title' =&gt; 'My second project',
          'emails' =&gt; array('manager@youwebsite.com',
                          'worker@youwebsite.com')
          )
  );
  </code></pre>
  
  <p><code>signin.php</code>:</p>
  
  <pre><code>require_once( 'config.php' );
  //displays arrays
  &lt;table class="table" border='1'&gt;
  &lt;thead&gt;
      &lt;tr&gt;
      &lt;th&gt; Project name&lt;/th&gt;
      &lt;th&gt; Project Login&lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;tbody&gt;
  &lt;?php foreach( $logins as $projname =&gt; $projinfos ): ?&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;?= $projname ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?= $projinfos["title"]?&gt;
          &lt;/td&gt;
          &lt;/tr&gt;
  
  &lt;?php endforeach; ?&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>