ballhogjoni Posted April 18, 2007 Share Posted April 18, 2007 whats worng with this? Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/realfina/public_html/findacreditsolution/linkmachine/test.php on line 2 <?php $040 = " "; $041 = "!"; $042 = "\""; echo $042; ?> Link to comment https://forums.phpfreaks.com/topic/47586-parse-error/ Share on other sites More sharing options...
Wildbug Posted April 18, 2007 Share Posted April 18, 2007 Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive. Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' Link to comment https://forums.phpfreaks.com/topic/47586-parse-error/#findComment-232344 Share on other sites More sharing options...
ballhogjoni Posted April 18, 2007 Author Share Posted April 18, 2007 Thanks sometimes i feel like a complete idiot. Link to comment https://forums.phpfreaks.com/topic/47586-parse-error/#findComment-232354 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.