Answers for "t variable error meaning in php"

PHP
0

t variable error meaning in php

//Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE
//Occurs when there is a variable that is not allowed. e.g Missed a 
//($)dollar sign before the variable name or (;)semcolon at the end.

<?php
  $a = 5
  $b = 7;        // Error happens here.
  print $b;
?>
Posted by: Guest on October-07-2020

Browse Popular Code Answers by Language