Answer the question
In order to leave comments, you need to log in
Why doesn't this record $limit = "Limit {$limit+5}" work?
Gives an error: Parse error: syntax error, unexpected '+', expecting '}'
Is it possible to perform arithmetic operations somehow in a string?
Answer the question
In order to leave comments, you need to log in
because you can't do that php.net/manual/en/language.types.string.php#langua...
Using double quotes and curly braces is bad design.
Write normally:$limit = 'Лимит ' . ($limit+5);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question