php - Get a value from object -


my query return stdclass of objects

how can value of - affected_rows -

    object (     [affected_rows] => 0       [connect_errno] => 0      [connect_error] => [errno] => 0      [error] => [error_list] => array ( ) [field_count] => 0     [host_info] => localhost      [stat] => uptime: 261195 threads: 5 questions: 14167 slow queries: 0  opens: 2969 flush tables: 1 open tables: 191 queries per second avg: 0.054     [thread_id] => 1593 [warning_count]  => 0 ) [result:protected] => mysqli 

i tried pass objects array dont works

thanks

properties of object accessed ->

var_dump($object->affected_rows); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -