The following gives an error:
<?php
$super-man=100;
?>
Parse error: parse error, unexpected '=' in /test.php on line 2
I understand that the "-" sign is seen as an operator.
is there a way to get around this? I need to have "-" in variable names.
Thanks,
Ross
<?php
$super-man=100;
?>
Parse error: parse error, unexpected '=' in /test.php on line 2
I understand that the "-" sign is seen as an operator.
is there a way to get around this? I need to have "-" in variable names.
Thanks,
Ross
Comment