9 Execution and Conditional Operator in PHP

Program:

<?php
   #Exceution Operator
   $output = `ls -l`;
   echo $output;       #Displays long list of files from present directory

   #Conditional Operator
   $a = 10;
   $b = 20;
   $max = $a > $b ? $a : $b;
   echo "Max Number: $max";

?>


Output:

Execution and Conditional Operator in PHP

Previous
Next Post »