Syntax to execute code[ERROR]

Asked

Viewed 18 times

-1

$mensagem  = '


<div style="font-size:17px; color: #707070; font-weight:bold; font-family: 'Segoe UI Semibold','Segoe UI Bold','Segoe UI','Helvetica Neue Medium',Arial,sans-serif; "  > Conta da Microsoft </div>

';

Personal in the part font-family: ', as I type this so that it does not give error?

I don’t know what to do there because there are simple quotes inside double quotes, until then ok, but then I need to use more quotes and it’s wrong like this:

 Parse error: syntax error, unexpected 'Segoe' (T_STRING) in /storage/ssd3/793/15779793/public_html/enviar.php on line 5
  • Hello Optimus. Where these simple quotes 'Segoe UI Semibold','Segoe UI Bold','Segoe UI','Helvetica Neue Medium' it has to be "escaped", so \'Segoe UI Semibold\',\'Segoe UI Bold\',\'Segoe UI\',\'Helvetica Neue Medium\'. I recommend that before using a language learn the "basics", follow the link: https://www.php.net/manual/en/language.types.string.php. Thank you for your attention.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.