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 Quote Link to comment 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] Quote Link to comment 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 Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.