syntax question
| From: | Jimmy | Date: | Thu, 06 Mar 2003 09:18:32 +0000 |
| Subject: | syntax question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138435@lists.php.net to get a copy of this message | ||
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.