Compare two integers

compare, integer, php

Solution

Both of your comparisons return `false` which will not print out a value.

<?php
echo true;
echo false;

Problem

How do you compare two integers in php? I have tried ``` print (1 > 2); // No output $a = 1; $b = 2; $c = ($a > $b) ? true : false; print ($c); // No output ``` var_dump works fine. I have the latest PHP installed.

Original source