animatecss Posted August 8, 2014 Share Posted August 8, 2014 How does it add photos? It is all in one line. $feature .= isset($_POST['feature'])? $_POST['feature'] : 'feature\n' ; Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted August 8, 2014 Share Posted August 8, 2014 That line of code uses the ternary operator. More information can be found here: http://php.net/manual/en/language.operators.comparison.php#language.operators.comparison.ternary Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted August 8, 2014 Share Posted August 8, 2014 Sorry, I probably made the wrong assumption here. Are you asking about the newline character? In so, characters like "\n" need to be enclosed in double quotes if you want them to act like newlines. Note that if you're expecting this newline character to appear in a web page, you'll need to use an HTML tag like <br> instead. The newline character only appears in the source code for an HTML page. Quote Link to comment Share on other sites More sharing options...
jazzman1 Posted August 8, 2014 Share Posted August 8, 2014 I've never heard someone to concat (".") operators like in the example, strings...especially long ...YES, but never operators Quote Link to comment Share on other sites More sharing options...
trq Posted August 9, 2014 Share Posted August 9, 2014 I've never heard someone to concat (".") operators like in the example, strings...especially long ...YES, but never operators What? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.