Outputs the HTML checked attribute.

Compares the first two arguments and if identical marks as checked.


  • Full name: checked
  • Defined in: cms/core/Shared/Helpers/core.php

Parameters

Parameter Type Description
$checked mixed One of the values to compare
$current mixed (true) The other value to compare if not just true.
$echo bool Whether to echo or just return the string.

Return Value

string

HTML attribute or empty string