Home »
MCQs »
CodeIgniter MCQs
Which of the following returns an array with the names of all the tables in the database to which you are presently connected?
43. Which of the following returns an array with the names of all the tables in the database to which you are presently connected?
- $this->db->tables();
- $this->db->list_tables();
- $this->db->array_tables();
Answer: B) $this->db->list_tables();
Explanation:
$this->db->list_tables(); returns an array with the names of all the tables in the database to which you are presently connected.