PHP 7.2.0 Beta 3 Released

Voting

Please answer this simple SPAM challenge: six minus zero?
(Example: nine)

The Note You're Voting On

xs2ilyas at gmail dot com
6 months ago
When we start a constant name with space, it doesn't produce any error.

<?php
  define
(" YEAR"2000)
  echo
"success";
?>

output: success

But when we call this constant, it produce error.

<?php
  define
(" YEAR"2000)
  echo
YEAR;
?>

output: E_NOTICE :  type 8 -- Use of undefined constant YEAR - assumed 'YEAR' -- at line 4 YEAR

<< Back to user notes page

To Top