1
0
Fork 0
php-coding/3.test4.php

23 lines
509 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$str1 = 1234567890;
$str2 = 0x1234567890;
$str3 = 0123456;
$str4 = 01234567;
echo '$str1的值为'.$str1."<br>";
echo '$str2的值为'.$str2."<br>";
echo '$str3与$str4的关系是';
if($str3==$str4)
echo '$str3==$str4='.$str3;
else
echo '$str3!=$str4';
echo "<p>";
$str5 = pi();
$str6 = 3.1415926;
$str7 = 31415926E-7;
echo "\$str5:".$str5."<p>";
echo "\$str6:".$str6."<p>";
echo "\$str7:".$str7."<p>";
$arr1 = array('1','2','3','4','5');
$arr2 = array(0 => '1',1 =>'2');
$arr3[1] = 'temp';