Simple php question
-
hi i am just wondering if some one could tell me what the “?” mean in php syntax.
$post_cat = ( in_array( $_POST[‘post_cat’], $accepted_post_cats ) ) ? $_POST[‘post_cat’] : ‘status’;
Cheers
Nick
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Simple php question’ is closed to new replies.