Php – Can PHP be used without the dollar sign $ symbol for variables


Is it possible to name variables in a Java-like manner in PHP, such as by removing the need for a $ sign each time? If so, how can I enable the setting which does this?

Best Solution

Sorry, it's not possible. The closest you'll get are constants:

define('CONS', 5);
echo CONS;