Questions

What is the difference between (int) and intval() in php?

Here below i asked my doubt. Anyone please clear my doubt.


<?php
$a = 11.05;
$b =  (int)$a;
$c = intval($a);
echo "<br />  a :".$a;
echo "<br />  b :".$b;
echo "<br />  c :".$c;
die();
?>


Now both $b and $c given same result.
what is the difference between the result $b and $c?

Your Answers

Your Name:
Your Answers :
<> is a code tag
Preview
Enter the verification code:

Answers

No Answers..