{"id":3863,"date":"2022-01-18T12:44:56","date_gmt":"2022-01-18T12:44:56","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=3863"},"modified":"2022-02-17T07:13:46","modified_gmt":"2022-02-17T07:13:46","slug":"references-general","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/php\/memory\/references\/references-general","title":{"rendered":".References general"},"content":{"rendered":"\n<p>Assign a variable reference to another variable<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  $MyVariableA = \"abc\"\n  $MyVariableB = &amp;$MyVariableA;  \/\/Store a reference (pointer) to MyVariableA\n\n  $MyVariableB .= \"def\";\n  echo $MyVariableA; \/\/Outputs \"abcdef\"\n  echo $MyVariableB; \/\/Outputs \"abcdef\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Array references<\/h4>\n\n\n\n<p>Works just the same as for variables.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assign a variable reference to another variable Array references Works just the same as for variables.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[312],"tags":[],"class_list":["post-3863","post","type-post","status-publish","format-standard","hentry","category-references"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=3863"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3863\/revisions"}],"predecessor-version":[{"id":3928,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/3863\/revisions\/3928"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=3863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=3863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=3863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}