- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
D.h. der "+" Operatormacht beides: Wenn es sich eindeitig um Zahlen handelt, werden diese addiert (hoffentlich), wenn es sich aber um Texte handelt, wird einfach aneinandergehängt.For consistency between JavaScript and PHP, the plus operator (+) does addition if both operands are numeric, but does concatenation if both parts are non-numeric strings. However, we recommend using the "join()" function for concatenation, as that makes your intent more clear. It also avoids unexpected results if you were expecting strings but got numbers instead (or vice versa).
Please Log in to join the conversation.
Please Log in to join the conversation.