How to determine a value in condition PHP?
<p>I have a code for determining a value of mathematics and physics.</p>

<p><strong>->for math scores:</strong><br>
if value 0 - &lt;50, then "Bad"</p>

<p>if value 50 - &lt;75, then "enough"</p>

<p>if value 75 - &lt;85, then "good"</p>

<p>if value 85 - &lt;=100, "great"</p>

<p><strong>->for physics scores:</strong></p>

<p>if value 0 - &lt;50, then "Bad"</p>

<p>if value 50 - &lt;75, then "good"</p>

<p>if value 75 - &lt;85, then "great"</p>

<p>if value 85 - &lt;=100, "extraordinary"</p>

<p>if I enter physics scores=50 ,the result that I have like this:</p>

<pre><code>"Your physics scores are bad"
</code></pre>

<p>and the source code:</p>

<pre><code>   &lt;?php
$value=50;
//choice:
$courses='physics'; //or 
$courses='math';

if($courses='math' and $value&lt;50){
    $sentence_value='Your math scores are bad';}
elseif ($courses='physics') {
    $sentence_value='Your physics scores are bad';}
elseif
    ($courses='math' and $value&lt;75){
    $sentence_value='Your math scores are enough';}
elseif ($courses='pyhsics') {
    $sentence_value='Your physics scores are good';}
elseif
    ($courses='math' and $value&lt;85){
    $sentence_value='Your math scores are good';}
elseif ($courses='physics') {
    $sentence_value='Your physics scores are great';}
elseif
    ($courses='math' and $value&lt;=100){
    $sentence_value='Your math scores are great';}
elseif ($courses='physics') {
    $sentence_value='Your physics scores are extraordinary';}

echo"Value : $sentence_value";
?&gt;
&lt;br /&gt;
</code></pre>

<p>And the result, if I enter math scores by 50 points, that i want like this::</p>

<pre><code>"Your math scores are bad" 
</code></pre>

<p>if I enter math scores by 70 points, that i want like this:</p>

<pre><code>"Your math scores are enough"
</code></pre>

<p>if I enter math scores by 80 points, that i want like this:</p>

<pre><code>"Your math scores are good"
</code></pre>

<p>if I enter math scores by 100 points, that i want like this:</p>

<pre><code>"Your math scores are great"
</code></pre>

<p>if I enter physics scores by 50 points, that i want like this:</p>

<pre><code>"Your math scores are bad"
</code></pre>

<p>if I enter physics scores by 74 points, that i want like this:</p>

<pre><code>"Your math scores are good"
</code></pre>

<p>if I enter physics scores by 83 points, that i want like this:</p>

<pre><code>"Your math scores are great"
</code></pre>

<p>if I enter physics scores by 98 points, that i want like this:</p>

<pre><code>"Your math scores are extraordinary"
</code></pre>