title: php code error - Parse error: syntax error
body: <p>I copied some code example to new php file and got this error:</p>
  <blockquote>
  <p>( ! ) Parse error: syntax error, unexpected '$simple_string'
  (T_VARIABLE) in C:\wamp3\www\my_folder\test_enco.php on line 6</p>
  </blockquote>
  <p>Why is that?</p>
  <p>This is the code:</p>
  <pre><code>    &lt;?PHP
  //    error_reporting(E_ERROR | E_WARNING | E_PARSE);
        
      // Store a string into the variable which 
      // need to be Encrypted 
      $simple_string = &quot;Welcome to GeeksforGeeks\n&quot;; 
        
      // Display the original string 
      echo &quot;Original String: &quot; . $simple_string; 
        
      // Store the cipher method 
      $ciphering = &quot;AES-128-CTR&quot;; 
        
      // Use OpenSSl Encryption method 
      $iv_length = openssl_cipher_iv_length($ciphering); 
      $options = 0; 
        
      // Non-NULL Initialization Vector for encryption 
      $encryption_iv = '1234567891011121'; 
        
      // Store the encryption key 
      $encryption_key = &quot;GeeksforGeeks&quot;; 
        
      // Use openssl_encrypt() function to encrypt the data 
      $encryption = openssl_encrypt($simple_string, $ciphering, 
                  $encryption_key, $options, $encryption_iv); 
        
      // Display the encrypted string 
      echo &quot;Encrypted String: &quot; . $encryption . &quot;\n&quot;; 
        
      // Non-NULL Initialization Vector for decryption 
      $decryption_iv = '1234567891011121'; 
        
      // Store the decryption key 
      $decryption_key = &quot;GeeksforGeeks&quot;; 
        
      // Use openssl_decrypt() function to decrypt the data 
      $decryption=openssl_decrypt ($encryption, $ciphering,  
              $decryption_key, $options, $decryption_iv); 
        
      // Display the decrypted string 
      echo &quot;Decrypted String: &quot; . $decryption; 
        
      ?&gt; 
  </code></pre>