< PHP5.4 array syntax

This commit is contained in:
Alex Bilbie 2013-02-01 15:02:36 +00:00
parent 2c1dedfe8a
commit 8de2cdb1d9

View File

@ -16,6 +16,6 @@ class SecureKey
throw new Exception('Error Generating Key');
}
return substr(str_replace(['/', '+', '='], '', base64_encode($bytes)), 0, $len);
return substr(str_replace(array('/', '+', '='), '', base64_encode($bytes)), 0, $len);
}
}