<?php $el = 'span'; $res = ( $el == 'a' ) ? 'Это a' : (( $el == 'span' ) ? 'Это span' : 'Это не a и не span'); var_dump( $res ); //
You have javascript disabled. You will not be able to edit any code.