<?php
echo (int)("Hello PHP" != false);  // يطبع 1
echo '<br>';
echo gettype((int)"Hello PHP");    // يطبع "integer" 