PDA

View Full Version : JS Array



CMMVideos
06-22-2007, 08:23 PM
How do I add stuff to an array like this PHP Code:


<?php
$e = array();

$e[] = 'One';
$e[] = 'Two';

$total = implode('',$e);
?>

Twey
06-22-2007, 08:34 PM
var e = [];
e.push("One");
e.push("Two");
var total = e.join("");Or:
var e = ["One", "Two"];
var total = e.join("");Or:
var total = ["One", "Two"].join("");