CSE :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$a = '12345';
print "qwe".$a."rty";
?>
-
What will be the output of the following PHP code ?
<?php
$a = '12345';
echo 'qwe{$a}rty';
?>
-
What will be the output of the following PHP code ?
<?php
$a = '12345';
echo "qwe$arty";
?>
- PHP can automatically convert integers to floating point numbers and floating point numbers to integers.
- In PHP the integer 45 is stored exactly as 45. The floating point number 46.3 could be stored as.
- In order to find if a variable holds an actual number or a string containing characters that can be translated into a number you can use:
-
Numbers in PHP can’t be infinitely large or small, there is some minimum and maximum size. If more larger (or smaller) numbers are needed then . . . . . must be used:
1. GPM libraries
2. GMP libraries
3. CBMath
4. BCMath