Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
In your PHP screen shots, the first has line-end backslashes inside the quotes, so the backslashes are put into the string, so it doesn't work.
The second example has backslashes between strings, so it is an instruction to PHP to join up the lines. The string doesn't contain those backslashes, so this works.