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