<?php function foo($bar) { return $bar * 2; } $x = 'foo'; echo ( true === is_callable($x) ? 'T' : 'F' ); echo ( 4 == $x(2) ? 'T' : 'F' );
You have javascript disabled. You will not be able to edit any code.