Title: Creating a plugin: do I need unique variable names?
Last modified: August 22, 2016

---

# Creating a plugin: do I need unique variable names?

 *  [Chris Huff](https://wordpress.org/support/users/brochris/)
 * (@brochris)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/creating-a-plugin-do-i-need-unique-variable-names/)
 * 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’t conflict with other plugins, so 
   I’m prefixing my functions with an abbreviation of the plugin name. But I can’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?

The topic ‘Creating a plugin: do I need unique variable names?’ is closed to new
replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [plugin-development](https://wordpress.org/support/topic-tag/plugin-development/)
 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * 0 replies
 * 1 participant
 * Last reply from: [Chris Huff](https://wordpress.org/support/users/brochris/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/creating-a-plugin-do-i-need-unique-variable-names/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
