Jump to content

Archived

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

shortkid422

More than one value per variable

Recommended Posts

umm, you cant... you can ADD to a variable...

 

$variable = \"I like\";

$variable .= \"pizza!\";

 

echo $variable;

 

would look like: I like pizza!

 

 

But no, you can\'t have more than one value per variable without usuing arrays

Share this post


Link to post
Share on other sites
umm, you cant...

 

You can so long as you a means of separating them :-

 

Eg a colour value which has red, green and blue values in separate bytes

 

or

 

\"abc|def|ghi|jkl\" using a delimiter.

Share this post


Link to post
Share on other sites

×

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.