shortkid422 Posted December 14, 2003 Share Posted December 14, 2003 How can i insert more than one value per variable WITHOUT using arrays? Link to comment https://forums.phpfreaks.com/topic/1499-more-than-one-value-per-variable/ Share on other sites More sharing options...
triphis Posted December 15, 2003 Share Posted December 15, 2003 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 Link to comment https://forums.phpfreaks.com/topic/1499-more-than-one-value-per-variable/#findComment-4944 Share on other sites More sharing options...
shortkid422 Posted December 15, 2003 Author Share Posted December 15, 2003 k, thanks i, i just didnt want to do 78 queries, which is what i did. I love copy and paste! Link to comment https://forums.phpfreaks.com/topic/1499-more-than-one-value-per-variable/#findComment-4952 Share on other sites More sharing options...
Barand Posted December 15, 2003 Share Posted December 15, 2003 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. Link to comment https://forums.phpfreaks.com/topic/1499-more-than-one-value-per-variable/#findComment-4958 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.