Title: php Chapter 5
Course: PHP/MySQL Course

Q: What function will return the total number of characters in a string?
- str_count() (Incorrect.)
- strlen() (Correct.)
- strros() (Incorrect.)
- total() (Incorrect.)
A: strlen()

Q: What function will remove any whitespace at the beginning and end of a string
- trim
- strip
- trim_ends
- trim_space
A: trim

Q: what function can make a timestamp from supplied arguments for the year, month, day, hour, minute, and second?
- mktime
- timestamp
- settime
- buildtime
A: mktime

Q: type the name of the associative global array that holds the input from a form that has been declared with this form tag:
<form action="form.php" method='POST'>

type the full array name with the correct capitalization, but leave off the square brackets.
A: $_POST

Q: What technique can you use to 'remember' data between visits to a form that is shown in the book in the section on forms?
- use a hidden field
- use a static variable
- use a global array
- use the special $_SAVE variable
A: use a hidden field

Q: What function do you use to move an uploaded file from it's temporary folder to a permanent place?
A: move_uploaded_file

Q: What is the name of the array that holds information about any uploaded files from a from?
A: $_FILES / $_files

Q: What function can you call to end a session?
A: session_destroy / session_destroy() / session_destroy();

Q: What function test if a file exists or not?
- file_exists
- exists(fileame)
- fexists
- fileexists
A: file_exists

Q: what function can create a new folder?
- mkdir
- make_fdr
- make_dir
- newDir
A: mkdir

Q: PHP programs can draw pie charts on a HTML page.
- True
- False
A: True