Example of transformation of one query (method works with list):
query = some_field: value other_field: other_value
array = ['some_field' => ['value'], 'other_field' => ['other_value']]
public static createRulesFromQueries ( $queries, $allowEmpty = false ) : array | ||
$queries | ||
$allowEmpty | boolean Allow empty values | |
Résultat | array |