API17:JArrayHelper::toInteger
From Joomla! Documentation
JArrayHelper::toInteger
Description
Function to convert array to integer values.
public static function toInteger (
&$array
$default=null
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| &$array | array | $array The source array to convert | |
| $default | mixed | null | array) to assign if $array is not an array |
- Returns
- Defined on line 31 of libraries/joomla/utilities/arrayhelper.php
- Since

- Referenced by
- JTableUser::bind
- JHtmlCategory::categories
- JControllerAdmin::delete
- JForm::filterField
- JAccess::getGroupsByUser
- JAccess::getUsersByGroup
- JHtmlCategory::options
- JTableNested::publish
- JTableExtension::publish
- JTableContent::publish
- JTable::publish
- JControllerAdmin::publish
- JControllerAdmin::saveorder
- JUserHelper::setUserGroups
- JInstallerModule::uninstall
See also
JArrayHelper::toInteger source code on BitBucket
Class JArrayHelper
Subpackage Utilities- Other versions of JArrayHelper::toInteger
User contributed notes
Code Examples