Categories > TinyButStrong general >

'flip' = illegal name?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Sarah
Date: 2013-02-12
Time: 19:12

'flip' = illegal name?

I had some trouble this morning using 'flip' as a variable name. My php set

$item->line->flip = 'flip:x;';

When I tried to print this value in my template like

[Item.line.flip]

It acted as though it were blank. When I changed $item->line->flip to $item->line->flip1 and updated my template to use flip1, it worked. Is 'flip' a reserved word? I could not find any mention in the manual.

Thanks for reading.
By: Sarah
Date: 2013-02-13
Time: 00:44

Re: 'flip' = illegal name?

I think this may be my fault for naming a variable and function the same thing... which I really feel PHP should complain about but apparently it doesn't.
By: Skrol29
Date: 2013-02-13
Time: 01:27

Re: 'flip' = illegal name?

OK