medicalboy Posted April 20, 2011 Share Posted April 20, 2011 can anyone explain why we write the forech loop or if else statements in php like that <?phpif() {}foreach(array as value) {}?> and in html, we don't use the {} brackets and replace it with : <?phpif() :else :foreach(array as value) :}?> and if there is a related source for this point, i'll appreciated! Link to comment Share on other sites More sharing options...
thescientist Posted April 20, 2011 Share Posted April 20, 2011 HTML? :)HTML is not a programming language. (at least not in the classical sense). Could you elaborate on what you're trying to do? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 21, 2011 Share Posted April 21, 2011 PHP has an alternative syntax if you would rather use that, more similar to vb script:http://www.php.net/manual/en/control-struc...tive-syntax.php Link to comment Share on other sites More sharing options...
thescientist Posted April 21, 2011 Share Posted April 21, 2011 wow. I'll be. Link to comment Share on other sites More sharing options...
medicalboy Posted April 21, 2011 Author Share Posted April 21, 2011 PHP has an alternative syntax if you would rather use that, more similar to vb script:http://www.php.net/manual/en/control-struc...tive-syntax.php this is what i want ,ididn't know this,thanx justsomeguyand thanx thescientist for helpappreciated........ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.