Ejemplo n.º 1
0
/**
 * 2016-08-10
 * «groups[all_pay][groups][installment_sales][fields][plans][template][months]» => «months»
 * @param string $nameFull
 * @return string
 */
function df_fe_name_short($nameFull)
{
    return df_last(df_clean(df_explode_multiple(['[', ']'], $nameFull)));
}
Ejemplo n.º 2
0
/**
 * @param string|object $c
 * @return string[]
 * 2016-10-20
 * Нельзя делать параметр $c опциональным, потому что иначе получим сбой:
 * «get_class() called without object from outside a class»
 * https://3v4l.org/k6Hd5
 */
function df_explode_class($c)
{
    return df_explode_multiple(['\\', '_'], df_cts($c));
}