count(current($somvar)) raises: Only variables can be passed by reference
| From: | Thies C. Arntzen | Date: | Thu, 05 Aug 1999 07:39:40 +0000 |
| Subject: | count(current($somvar)) raises: Only variables can be passed by reference | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3136@lists.php.net to get a copy of this message | ||
hi,
<?
$src = array(array(1,2,3),array(4,5,6));
reset($src);
$numcols = count(current($src));
echo $numcols;
?>
i think this should work (php3 does).
tc (back from gibraltar)