I'm looking through some existing code for a project I'm working on, but I keep running into this syntax that I really don't understand. Here's an example:
$a=strpos($a,'-')?explode('-',$a,2):array($a); What do the ? and the : do here? I'm seeing this sort of thing all over and just have no idea what ? : do. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php