{"id":197818,"date":"2005-05-04T02:13:02","date_gmt":"2005-05-04T02:13:02","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-code-in-a-variable\/"},"modified":"2016-08-18T19:47:29","modified_gmt":"2016-08-18T19:47:29","slug":"php-code-in-a-variable","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-code-in-a-variable\/","title":{"rendered":"php code in a variable?"},"content":{"rendered":"<p>I would like $rr to contain the entire link code below. The code runs fine standing on it&#8217;s own. But when trying to add it to a variable, I get a &#8220;Parse error: parse error, unexpected &#8216;&lt;&#8216; &#8220;.<\/p>\n<p>&#8216;&lt;?php $rr=&lt;p class=&#8221;centerP&#8221;&gt;<a>&#8221; rel=&#8221;bookmark&#8221; title=&#8221;Permanent Link: &lt;?php the_title(); ?&gt;&#8221;&gt;<strong>[Read More]<\/strong><\/a><strong> ?&gt;&#8217;<\/p>\n<p>I&#8217;m really php ignorant and w3Schools.com isn&#8217;t much help.<\/p>\n","protected":false},"template":"","class_list":["post-197818","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/197818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/197818\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=197818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}