Jump to content

Number in Variable Name


maxudaskin

Recommended Posts

Is the following correct?

<?php
/* Forum Variables */
        $1  = "Notams";          //                LINE 11
$2  = "Staff Notams";
$3  = "Staff General Discussion";
$4  = "General Discussion";
$5  = "Off Topic";
$6  = "Events";
$7  = "Screenshots";
$8  = "Real World Zoom Airlines News";
$9  = "Pilot of the Month";
$10 = "CYVR - Vancouver International";
$11 = "CYYZ - Toronto Pearson International";
$12 = "EGKK - London Gatwick International";
?>

 

I get the following error...

Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/.grable/vzoom/virtualzoom.net/include/constants.php on line 11

Link to comment
https://forums.phpfreaks.com/topic/73407-number-in-variable-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.