onlyican Posted August 23, 2006 Share Posted August 23, 2006 HeyI aint with it today, so sorry for this question. But the work dont stop cos I cant thinkI have a basic array$var = array("60.60","360.240");The array is stored in a sessionSo I want to add another value say"180.180";I know its easy, but I am brain deadCheers guys Link to comment https://forums.phpfreaks.com/topic/18429-easy-array-question/ Share on other sites More sharing options...
trq Posted August 23, 2006 Share Posted August 23, 2006 [code=php:0]$var = array("60.60","360.240");array_push($var,"180.180");[/code] Link to comment https://forums.phpfreaks.com/topic/18429-easy-array-question/#findComment-79228 Share on other sites More sharing options...
onlyican Posted August 23, 2006 Author Share Posted August 23, 2006 Thats itI was doing it being half a sleep, then started to do a loop, thinking What am I doing here Link to comment https://forums.phpfreaks.com/topic/18429-easy-array-question/#findComment-79233 Share on other sites More sharing options...
Jenk Posted August 23, 2006 Share Posted August 23, 2006 or: [code=php:0]$array[] = '180.180';[/code] Link to comment https://forums.phpfreaks.com/topic/18429-easy-array-question/#findComment-79251 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.