Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface::getIndicesForChoices
Returns the indices corresponding to the given choices.
The indices must be positive integers or strings accepted by {@link FormConfigBuilder::validateName()}. The index "placeholder" is internally reserved.
Signature
public function getIndicesForChoices(array
$choices )
Parameters
$choices
— array- An array of choices. Not existing choices in this
array are ignored
Returns
- array
- An array of indices with ascending, 0-based numeric keys