I seem to have a problem with PHP assembling code when it encounters the assignment operator (->). My codes acts like I entered a ?> to end a PHP code sequence. It then starts printing the code on the screen until it encounters a new <?php code block. If I do not use and object assignment operators like '->' then everything works as normal. Anyone else run into this problem?
Thanks
Sam
problem with "->" in php code
Moderator: General Moderators
Re: problem with "->" in php code
Never have. If you post the relevant code we may be able to figure it out.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: problem with "->" in php code
What version of PHP are you running? You also might check your string openings/closings to make sure that you aren't outputting code in your string.