Home > Syntax Error > Parse Error Unexpected T_lnumber Expecting T_variable

Parse Error Unexpected T_lnumber Expecting T_variable


I'm a php beginner. This post has been edited by Hary: 05 January 2009 - 11:22 AM Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #3 sam_benne D.I.C Addict Reputation: Jump to content Sign In Create Account Search Advanced Search section: This topic Forums Members Help Files Pages View New Content Forums Members Chat Rules and ToS More PHP Log in or register to post comments Comment #6 jlea9378 CreditAttribution: jlea9378 commented May 7, 2014 at 1:42am In my override module that I created, I had this code and was Check This Out

see it –SMK Jul 1 '14 at 18:45 add a comment| 3 Answers 3 active oldest votes up vote 1 down vote accepted The errors message is quite descriptive. Reference Sheets Code Snippets C Snippets C++ Snippets Java Snippets Visual Basic Snippets C# Snippets VB.NET Snippets ASP.NET Snippets PHP Snippets Python Snippets Ruby Snippets ColdFusion Snippets SQL Snippets Assembly Snippets You haven't done a regex match (in the code that I can see) before the line $replace = 'src="'.get_site_url( $2 ).'"';. –Jack Maney Mar 5 '12 at 18:25 | show 1 TeX capacity exceeded with beamer Reduce function is not showing all the roots of a transcendental equation Can an irreducible representation have a zero character? http://stackoverflow.com/questions/9571559/syntax-error-unexpected-t-lnumber-expecting-t-variable-or

Syntax Error, Unexpected T_lnumber

Yes, my password is: Forgot your password? I'm getting a similar error as others have posted in this thread, and I just can't find the problem. Log in or register to post comments Comment #1.0 Miff CreditAttribution: Miff commented October 31, 2013 at 2:21pm Issue summary: View changes Typo Log in or register to post comments Comment http://php.net/manual/en/language.variables.basics.php Variable names follow the same rules as other labels in PHP.

Username Password I've forgotten my password Remember me This is not recommended for shared computers Sign in anonymously Don't add me to the active users list Privacy Policy Log in or Can't reproduce the issue with array() being exported as Array. But it looks more advanced. Php T_lnumber Back to top #2 CodeMaster CodeMaster Advanced Member Members 39 posts LocationAmsterdam Posted 15 May 2010 - 08:00 PM You can't use numbers as variables.

Thank you, I changed it to a,b,c and it's working, except for this error; "Parse error: syntax error, unexpected T_VARIABLE in /home/habhubc/public_html/intra/msend_alert_conf.php on line 109" Line 109 = $b.... $a = Joomla Parse Error: Syntax Error, Unexpected T_lnumber, Expecting T_variable Or '$' Thanks in advance Was This Post Helpful? 0 Back to top MultiQuote Quote + Reply #5 JackOfAllTrades Saucy! Do I need to do this? I run the script, and it doesn't send the email.

It is built on WordPress, hosted by Media Temple, and the assets are served by MaxCDN. Terms Privacy Security Status Help You can't perform that action at this time. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 16 Star 150 Fork 121 sebastianbergmann/phpunit-mock-objects Code Issues 16 Pull requests 5 Projects In my case, the line number of the error points directly to the problem.

Joomla Parse Error: Syntax Error, Unexpected T_lnumber, Expecting T_variable Or '$'

What to do with my pre-teen daughter who has been out of control since a severe accident? https://css-tricks.com/forums/topic/unexpected-t_lnumber-expecting-t_variable-or/ Are illegal immigrants more likely to commit crimes? Syntax Error, Unexpected T_lnumber I have a new guy joining the group. Parse Error: Syntax Error, Unexpected '2' (t_lnumber) If you don't mind give me some sample code or can you give me the modified code of my function?

My code is as follows. Slots['capacity']; echo $info->Slots['numUsed']; echo " slots out of "; echo $info->Slots['capacity']; echo " used.
"; echo "

    "; for ($1=0; $i<$playerCount; $i++) his comment is here Log in or register to post comments Comment #5 jlea9378 CreditAttribution: jlea9378 commented May 7, 2014 at 12:58am The issue described in comments #2, 3 and 4 seem to be different What kind of weapons could squirrels use? Reload to refresh your session. Syntax Error Unexpected 3 T_lnumber

    But when I test it, no email shows up. Even if $2 was a valid PHP variable name, it still wouldn't be set at that point in your script. Why isn't tungsten used in supersonic aircraft? this contact form Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.

    You can also google simple error messages like this to get a good idea of what the problem might be. Give help. Has anyone come up with a solution yet?

    Today's Topics Dream.In.Code > Programming Help > PHP Parse error: syntax error, unexpected T_LNUMBERcould you please help about this error message Page 1 of 1 New Topic/Question Reply 8 Replies -

    Browse other questions tagged xml parsing php or ask your own question. We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Write a name for the variable not a number. You signed in with another tab or window.

    Forums » Back End » unexpected T_LNUMBER, expecting T_VARIABLE or ‘$' LaurelBrittany # June 2, 2013 at 2:37 pm I'm getting this error for my shopping cart: Parse error: syntax error, Unfortunately it results in a fatal error on code I can't see unless I get into the depths of the framework. An exception would be handy. navigate here A short example of preg_replace_callback; $get_site_url = // Returns replacement function($row) { return '!'.$row[1].'!'; // row[1] is first "backref" }; $str = 'olle'; $regex = '/(ll)/'; // String to match $output

    That fixed that problem. Problem to left align within a split Interviewee offered code samples from current employer -- should I accept? Join them; it only takes a minute: Sign up Syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in for loop [closed] up vote -1 down vote favorite I am trying to I checked the link you provided.

    Thanks –user1091558 Mar 5 '12 at 18:14 2 Did you even bother reading the link provided? –Ignacio Vazquez-Abrams Mar 5 '12 at 18:16 Hey there, Sorry.. This will not work if get_site_url is doing something more complex. There is no error when I ran it... –ka_lin Mar 4 '14 at 21:16 I think the error is when you call it, you are not sending a number. Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox.

    But now there's one other problem. The fonts are Source Sans Pro and Source Code Pro. It's particularly troublesome because it short-circuits both the site and Drush, so there's not even a way to clear the site's cache if you fix it by escaping the comments.