Php Interview Question and Answers
21. |
Which object is returned by DB::connect()? |
|
DB::connect() returns an object of type DB_common. This is always a child implementation specific to a database application. |
|
|
22. |
How would you delete a named element from a database? |
|
You can delete an element with dba_delete(). |
|
|
23. |
Which function would you use to write a line of data to a file? |
|
You can write data to a file with the fputs() function. |
|
|
24. |
How would you determine the size of a file? |
|
The filesize() function returns a file's size in bytes. |
|
|