1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- echo 'hello world';
- $var1 =5;
- $var2 = 1;
- echo $var2;
- $var2 = 2;
- echo $var2;
- unset($var2);
- $a = 'b';
- $b = 'bb';
- echo $a;
- echo $$a;
- define('PI',3.14);
- const PII = 3;
- define('-_-',smile);
- const -_- = smile;
- echo -_-;
- echo constant('-_-');
- echo phpversion,php_int_size,php_int_max;
- $a = 'abc1.1.1';
- $b = '1.1.1abc';
- echo $a + $b;
- echo '<br/>',(float)$a,(float)$b;
- var_dump(is_int($a));
- var_dump(is_string($a));
- echo gettype($a);
|