title: Arithmetic operations between variables
body: <p>I'm beginner with <code>php</code>. I am trying to apply some random arithmetic operation between two variables</p>
  
  <pre><code>$operators = array(
      "+",
      "-",
      "*",
      "/"
      );
  
  $num1 = 10;
  $num2 = 5;
  
  $result = $num1 . $operators[array_rand($operators)] . $num2;
  
  echo $result;
  </code></pre>
  
  <p>it prints values like these</p>
  
  <pre><code>10+5
  10-5
  </code></pre>
  
  <p>How can I edit my code in order to do this arithmetic operation?</p>