Quote from PHP documentation:. Note : Unlike the double-quoted and heredoc syntaxes, variables and escape sequences for special characters will not be expanded when they occur in single quoted strings. It's more likely that the unclosed ' on the first line of your example code is causing your issue. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Collectives on Stack Overflow. Learn more. Ask Question. Asked 10 years, 8 months ago. Active 1 year, 5 months ago. Viewed k times. Improve this question. Peter Mortensen They're coming from a client's CSV. Add a comment. Active Oldest Votes. Quote from PHP documentation: Note : Unlike the double-quoted and heredoc syntaxes, variables and escape sequences for special characters will not be expanded when they occur in single quoted strings.
Improve this answer. It's good to know. After a recent post at the forums on Dev Shed, I noticed that it isn't mentioned, so I will mention it. Allow me to explain. Although it does re-add the line break, it does so in an attempt to stay standards-compliant with the W3C recommendations for code format.
According to said recommendations, a new line character must follow a line break tag. In this situation, the new line is not removed, but a break tag is added for proper browser display where a paragraph isn't necessary or wanted. Submit a Pull Request Report a Bug. Parameters array The input array. Return Values Returns the array value in the previous place that's pointed to by the internal array pointer, or false if there are no more elements.
Warning This function may return Boolean false , but may also return a non-Boolean value which evaluates to false. Changelog Version Description 8. Notes Note : The beginning of an array is indistinguishable from a bool false element.
0コメント