<?php
$mysqli=new mysqli('localhost','root','root','imooc');
var_dump($mysqli);
打印结果:
object(mysqli)[1] public 'affected_rows' => null
public 'client_info' => null
public 'connect_errno' => null
public 'connect_error' => null
............................. =>null
............................. =>null public 'thread_id' => null
public 'warning_count' => null
返回的结果为什么全部是NULL?
使用print_r()就正常.
谢谢!
刘伶