Function form_checked
Allow you to select a checkbox or a radio button
Package: PHPLucidFrame\Core
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/form_helper.php
Copyright: Copyright (c), PHPLucidFrame.
License: MIT License This source file is subject to the MIT license that is bundled with this source code in the file LICENSE
Author: Sithu sithu@phplucidframe.com
Located at helpers/form_helper.php
string |
$name |
The field name of the checkbox or radio button |
mixed |
$value |
The value to check against |
mixed |
$defaultValue = null |
The default selected value (optional) |
string
|
'checked="checked"' if the option is found, otherwise the empty string returned
|