Definition:
function checked( $checked, $current = true, $echo = true ) {}
Outputs the html checked attribute.
Compares the first two arguments and if identical marks as checked
Parameters
- mixed $checked: One of the values to compare
- mixed $current: (true) The other value to compare if not just true
- bool $echo: Whether to echo or just return the string
Return values
returns:html attribute or empty string
Source code
function checked( $checked, $current = true, $echo = true ) { return __checked_selected_helper( $checked, $current, $echo, 'checked' ); }
591
No comments yet... Be the first to leave a reply!