Jump to content

Archived

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

onlyican

Easy Array Question

Recommended Posts

Hey
I aint with it today, so sorry for this question. But the work dont stop cos I cant think

I have a basic array
$var = array("60.60","360.240");

The array is stored in a session
So I want to add another value say
"180.180";
I know its easy, but I am brain dead

Cheers guys

Share this post


Link to post
Share on other sites
[code=php:0]
$var = array("60.60","360.240");
array_push($var,"180.180");
[/code]

Share this post


Link to post
Share on other sites
Thats it

I was doing it being half a sleep, then started to do a loop, thinking What am I doing here

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.