php programming
guys i have following process.php  file

    <html>
    <head>
    <title> Form Processing  </title>
    </head>
    <body>
    <?php
      //  print _r($_POST)
      $arr=array
      (
      "ana" => "ana123",
      "gogi"=>"2345",
      "vano"=>"3at4"
      );
      
      $username=$_POST['username'];
      $password=$_POST['password'];
      if(arr[$username] == $password){
      echo " you entered  correct input  for ana ";
      }
      else
      {
      echo " try again "; 
      
      }
      
      ?>
      </body>
      </html>

      when i run   this code,it wrote 
 Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\datuna\process.php on line 17
but where is missed [ i could not understand,i am tring to check if user   entered correct   username and password,here is also this  file  if  you need it

    <html>
    <head>
    <title>FORMS</title>
    </head>		
    <body>
    <form action="process.php" method="post">
    Username : <input type=text  name=username  value="" /> <br/>
    Password : <input type=password   name=password value="" /><br/>
    <input type="submit" name=submit value=submit />
    </form>
    </body>
    </html> 
php programming
===

guys i have following process.php  file

    <html>
    <head>
    <title> Form Processing  </title>
    </head>
    <body>
    <?php
      //  print _r($_POST)
      $arr=array
      (
      "ana" => "ana123",
      "gogi"=>"2345",
      "vano"=>"3at4"
      );
      
      $username=$_POST['username'];
      $password=$_POST['password'];
      if(arr[$username] == $password){
      echo " you entered  correct input  for ana ";
      }
      else
      {
      echo " try again "; 
      
      }
      
      ?>
      </body>
      </html>

      when i run   this code,it wrote 
 Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\datuna\process.php on line 17
but where is missed [ i could not understand,i am tring to check if user   entered correct   username and password,here is also this  file  if  you need it

    <html>
    <head>
    <title>FORMS</title>
    </head>		
    <body>
    <form action="process.php" method="post">
    Username : <input type=text  name=username  value="" /> <br/>
    Password : <input type=password   name=password value="" /><br/>
    <input type="submit" name=submit value=submit />
    </form>
    </body>
    </html> 