add element to an array

From: Date: Mon, 29 Sep 2003 08:57:02 +0000
Subject: add element to an array
Groups: php.general 
Request: Send a blank email to php-general+get-164206@lists.php.net to get a copy of this message
Hi, I want to add a new element to an array in php, is the following way the correct way? assuming that $chk is an array and $ID contains a value. $j = count($chk); $j++; $chk[$j] = $ID;

« previous php.general (#164206) next »