Jump to content

Variable with Multiple Potential Values


dtyson2000

Recommended Posts

Hello.

 

A quick question because I'm not sure that I'm finding what I need when I Google (or search these fora).

 

I was just wondering if it's possible to assign multiple (three) potential values to one variable. This is what I initially tried:

 

$variable = ("value1" || "value2" || "value3");

 

Of course that didn't work. Is there a way to do such a thing - assign the same variable name to a few different values?

 

Sorry, if the answer was right in front of my nose and I didn't see it.

 

Have a good one!

Link to comment
https://forums.phpfreaks.com/topic/196527-variable-with-multiple-potential-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.