{"id":5980,"date":"2014-04-11T06:57:51","date_gmt":"2014-04-11T06:57:51","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/11\/syntax-error-unexpected-t_constant_encapsed_string-expecting-closed-collection-of-common-programming-errors\/"},"modified":"2014-04-11T06:57:51","modified_gmt":"2014-04-11T06:57:51","slug":"syntax-error-unexpected-t_constant_encapsed_string-expecting-closed-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/11\/syntax-error-unexpected-t_constant_encapsed_string-expecting-closed-collection-of-common-programming-errors\/","title":{"rendered":"Syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting &#39;)&#39; [closed]-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve followed the tutorial in these YT videos to build a language switcher and bilingual site in PHP (no framework). When I try to test it in WAMP, however, I get the following error:<\/p>\n<p><strong>Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting &#8216;)&#8217; in C:\\wamp\\www\\skydoll\\lang\\francais.php on line 6<\/strong><\/p>\n<p>I have found by searching this site that this is often caused by the line above the reported error line, but being new to PHP I can&#8217;t seem to find anything wrong with the code.<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>Anything looks out of place?<\/p>\n<p>Before I got to this point, however, I got other syntax errors in the file init.php, which is the file calling francais.php. Could the error be coming from there? I&#8217;ll include the code for that as well in case:<\/p>\n<pre><code>\n<\/code><\/pre>\n<p>Thank you in advance for your help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve followed the tutorial in these YT videos to build a language switcher and bilingual site in PHP (no framework). When I try to test it in WAMP, however, I get the following error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting &#8216;)&#8217; in C:\\wamp\\www\\skydoll\\lang\\francais.php on line 6 I have found by searching this site that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5980","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5980"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5980\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}