| Code: |
| fwrite($fp, "<tr>\n<td class=/"entrant_list/">\n".$wifin."</td>\n</tr>\n"); |
I haven't used PHP in over a year, so give me a break if I made some really stupid error.
Thanks.
| Code: |
| fwrite($fp, "<tr>\n<td class=/"entrant_list/">\n".$wifin."</td>\n</tr>\n"); |
| Code: |
| fwrite($fp, "<tr>\n<td class=\"entrant_list\">\n$wifin</td>\n</tr>\n"); |
| Code: |
| fwrite($fp, '<tr>\n<td class="entrant_lis\">\n'.$wifin.'</td>\n</tr>\n'); |
| simplyw00x wrote: | ||||
You want
Escapes are \, not / - but if you're using string concatenation ("foo"."bar") instead of variable substitution you can use single-quotes around the whole thing instead. |
| Quote: |
| Use simplyw00x's first example. \n and \r nned to be in double quotes from what I remember. |
| manav wrote: |
| replace \n by \\n i guess |
| Code: |
|
'' |
| Code: |
|
$somevar = 'google'; echo '$somevar'; |
| Code: |
|
$somevar |
| Code: |
|
$somevar = 'google'; echo "$somevar"; |
| Code: |