Blogger Information
Blog 5
fans 58
comment 14
visits 14076
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
html基础
小树的博客
Original
1327 people have browsed it

实例111

<?php

$bool = true;
$int = 10;
$flo = 1.5;
$string ='我爱PHP';
$arr =['java','php','c','python'];
$obj =new stdClass();
$obj->id ='1001';
$obj->name='詹姆斯';
$obj->age='18';
$file = fopen('test.txt','r') or die('打开失败');
$emp = null;

echo '$bool是'.gettype($bool).'型','<br>';
echo '$int是'.gettype($int).'型', '<br>';


echo var_dump($flo),'<br>';
var_dump($string);
echo '<br>';
var_dump($arr);
echo '<br>';


echo is_object($obj),'<br>';
echo '<pre>'. print_r($obj,1). '</pre>';
echo '<br>';
echo is_resource($file),'<br>';

echo is_null($file),'<br>';
echo is_null($emp), '<br>';

运行实例 »

点击 "运行实例" 按钮查看在线实例

 <!DOCTYPE html>
 <html>
 <head>
  <meta charset="utf-8">
   <title>jquery语法</title>
  <script type="text/javascript" src="jQuery/jquery-3.3.1.min.js"></script>
    </head>
 <body>
   <script type="text/javascript">
   $(document).ready(function () {
   //  $str="我是一个标量"
   //  alert($str);

     $("div").hide()
     $("button").click(function () {
       $("div").show()
     })
  
   })
   </script>

 <div style="width:100px;height:100px;background:pink"></div>
 <button>点击</button>
 </body>
 </html>


1234
11111222223333344444


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
1 comments
小北 2021-06-12 15:08:12
很中意你,看了你写的cache那篇文章,编码风格非常好,加个QQ交流下好吗?654321114 小北
1 floor
Author's latest blog post