View Single Post
Old 06-15-2012, 03:40 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Initialize them as arrays first:
PHP Code:
$php_errors = array();
$php_success = array(); 
Problem solved. Using array_push requires the first param as an array, while currently they are null. This differs from using the ArrayAccess which would automatically populate:
PHP Code:
$array null;
$array[] = 'an item'
After that, you can use count, or just if ($php_errors) will also work.
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
d'Anconia (06-17-2012)