Answers for "use of undefined constant name - assumed 'name' (this will throw an error in a future version of php"

PHP
0

use of undefined constant name - assumed 'name' (this will throw an error in a future version of php

#if you forget to put $ before a variable name that will cause this error
<?php
  $name = "Ahmed";
  echo name; #this will cause use of undefined constant name - assumed
  echo $name; #this will fix the error
Posted by: Guest on August-08-2021

Code answers related to "use of undefined constant name - assumed 'name' (this will throw an error in a future version of php"

Browse Popular Code Answers by Language