FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » parse error can't find
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: parse error can't find [message #184228 is a reply to message #184227] Sun, 15 December 2013 22:00 Go to previous messageGo to previous message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma:
Senior Member
On Sun, 15 Dec 2013 16:29:20 -0500, Richard Damon wrote:

> On 12/15/13, 3:45 PM, richard wrote:
>> On Sun, 15 Dec 2013 15:35:35 -0500, richard wrote:
>>
>>> "AL BROWNS TUNETOPPERS"=>array( 'track'=>"The Madison", 'flip'=>"Mo
>>> Madison", 'label'=>"Amy 804",'author'=>"Al Brown", 'entry'=>"4/4/1960",
>>> 'peak'=>"23", 'weeks'=>"12")
>>>
>>> Parse error: unexpected T_CONSTANT_ENCAPSED_STRING
>>>
>>> Why?
>>
>>
>> "AL BROWNS TUNETOPPERS"=> <<<<< why is this wrong?
>> array(
>> 'track'=>"The Madison",
>> 'flip'=>"Mo Madison",
>> 'label'=>"Amy 804",
>> 'author'=>"Al Brown",
>> 'entry'=>"4/4/1960",
>> 'peak'=>"23",
>> 'weeks'=>"12")
>>
>> Broken down this way, the error still points to the same line.
>>
>
> What are you expecting it to do?
>
> It is a little hard to figure out the problem as it looks like you are
> not giving us even a complete statement.
>
> there is no ; at the end of the statement.

NOT required!
As this is only part of a large array.
the ; is included at the end of the main array, not sub arrays.

>
> the string => value is only used inside an array operator, but you are
> showing it as the "start" of your "statement".

=> defines a "key". Yes ut us ubsude if abiter arrat,
>
> If this is something even close to working, my guess is the line before
> is part of the statement, and somewhere earlier is the array operator.
> Maybe you are missing the comma at the end of the previous element.

My guess is that I had an extra ) where it wasn't supposed to be.
Anyways, it's fixed now.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: YouTube script quits displaying "Tags" info
Next Topic: Where's the error?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 15:29:13 GMT 2024

Total time taken to generate the page: 0.10326 seconds