Assigning const value to const error in php

Posted by maxxtack on Stack Overflow See other posts from Stack Overflow or by maxxtack
Published on 2010-03-24T22:30:20Z Indexed on 2010/03/24 22:33 UTC
Read the original article Hit count: 187

Filed under:
<?php
 class Lala {
  const a = "a";
  const b = a . "b";
 }
?>

Parse error: syntax error, unexpected '(', expecting ',' or ';' on line 4

What's the problem with it?

© Stack Overflow or respective owner

Related posts about php