Hello..I'm coming from JavaScript and just learning PHP..
I've never seen this kind of notation before:
..where they use " : "...PHP Code:<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
I'm thinking that this still reads, if have_post() is true (with the function specifics having an array of values that are probably returned), while there is an iteration of values returned, do function (the_post())...?
If this is the case then, where does the ":" come in?...I didn't see this kind of notation in my PHP book...
by the way...this is a line from the Wordpress platform...


Reply With Quote

Bookmarks