note 118691 added to control-structures.if

From: Date: Tue, 19 Jan 2016 22:34:30 +0000
Subject: note 118691 added to control-structures.if
Groups: php.notes 
Request: Send a blank email to php-notes+get-204730@lists.php.net to get a copy of this message
$det = $b*$b-4*$a*$c; if ($det <0) { echo "bubb $a&sdot;x² + $b&sdot;x + $c = 0 does not have an answer."; } elseif ($det ==0) { $loesung = round(-$b/(2*$a),2); echo "blubb $a&sdot;x² + $b&sdot;x + $c = 0 does not have an answer."; } elseif ($det > 0) { $loesung1 = round((-$b+sqrt($det))/(2*$a),2); $loesung2 = round((-$b-sqrt($det))/(2*$a),2); echo "blubb $a&sdot;x² + $b&sdot;x + $c = 0 does have an answer $loesung1 and $loesung2."; } ---- Server IP: 72.52.91.14 Probable Submitter: 2a02:8070:aab:1600:9d59:b48d:2804:3e73 ---- Manual Page -- http://php.net/manual/en/control-structures.if.php Edit -- https://master.php.net/note/edit/118691 Del: integrated -- https://master.php.net/note/delete/118691/integrated Del: useless -- https://master.php.net/note/delete/118691/useless Del: bad code -- https://master.php.net/note/delete/118691/bad+code Del: spam -- https://master.php.net/note/delete/118691/spam Del: non-english -- https://master.php.net/note/delete/118691/non-english Del: in docs -- https://master.php.net/note/delete/118691/in+docs Del: other reasons-- https://master.php.net/note/delete/118691 Reject -- https://master.php.net/note/reject/118691 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204730) next »