Righty, say you have a code, which would you say is the cleanest coded, which one would you say is the best to look at, and which would / do you code like.
Example 1 (My style of coding):
Example 2PHP Code:<?php
if(isset($_POST["username"]) && isset($_POST["password"]))
{
if($_POST["username"] == "")
{
do this
}
else
{
do this
}
}
?>
Example 3PHP Code:<?php
if(isset($_POST[username]) && isset($_POST[password]))
{if($_POST[username] == "")
{do this}
else
{do this}}
?>
PHP Code:<?php
if(isset($_POST['username']) && isset($_POST['password']))
{
if($_POST['username'] == "")
{ do this
}
else
{ do this
}
}
?>





Reply With Quote



Long time no see.








