private static function findByRel(array $a, $rel)
    {
        $relName = mb_strtolower($rel, 'UTF-8');
        foreach ($a as $name => $value) {
            if (mb_strtolower($name, 'UTF-8') === $relName) {
                return $value;
            }
        }
        
        return null;
    }
private static function findByRel(array $a, $rel)
    {
        $relName = mb_strtolower($rel, 'UTF-8');
        foreach ($a as $name => $value) {
            if (mb_strtolower($name, 'UTF-8') === $relName) {
                return $value;
            }
        }
        
        return null;
    }
private static function findByRel ( array $ a , $ rel ) { $ relName = mb_strtolower ( $ rel , 'UTF-8' ) ; foreach ( $ a as $ name => $ value ) { if ( mb_strtolower ( $ name , 'UTF-8' ) === $ relName ) { return $ value ; } } return null ; }
Looks for the given relation name in a case-insensitive
fashion and returns the corresponding value.
@return	mixed	The value in $a matching the relation name
or null if not found.
Looks for the given relation name in a case - insensitive fashion and returns the corresponding value .