{"id":5330822,"date":"2014-09-25T15:51:55","date_gmt":"2014-09-25T15:51:55","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/creating-a-plugin-do-i-need-unique-variable-names\/"},"modified":"2016-08-22T02:51:38","modified_gmt":"2016-08-22T02:51:38","slug":"creating-a-plugin-do-i-need-unique-variable-names","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/creating-a-plugin-do-i-need-unique-variable-names\/","title":{"rendered":"Creating a plugin: do I need unique variable names?"},"content":{"rendered":"<p>I read somewhere that I need to make sure that any functions I write in my plugin need to have unique names so that they don&#8217;t conflict with other plugins, so I&#8217;m prefixing my functions with an abbreviation of the plugin name. But I can&#8217;t find whether or not the same is true for variables? Can I simply have $a and $b or should I make them something like $afift_a and $afift_b so that they are unique?<\/p>\n","protected":false},"template":"","class_list":["post-5330822","topic","type-topic","status-closed","hentry","topic-tag-php","topic-tag-plugin-development","topic-tag-variables"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5330822","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\/5330822\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5330822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}