i simply use print_r and var_dump function for get the info of array.but i wonder they both giving a big difference. print_r is showing that array has 1 row whereas var_dump showing null on same array, here the output print_r showing this
mysqli_result Object ( [current_field] => 0 [field_count] => 2 [lengths] => [num_rows] => 1 [type] => 0 )
whereas var_dump showing this on same array
object(mysqli_result)[4]
public 'current_field' => null
public 'field_count' => null
public 'lengths' => null
public 'num_rows' => null
public 'type' => null
i want to know what is the difference here... i thought both function same expect var_dump show data type also...