Php Interview Question and Answers
37. |
Which function would you use to acquire the starting index of a substring within a string? |
|
The strstr() function returns the starting index of a substring.
|
|
|
38. |
What syntax would you use to output a string to the browser? |
|
We would usually use print() to write to the browser, although we could use echo() with the same results. |
|
|
39. |
What is MySQL? |
|
- MySQL is a database server
- MySQL is ideal for both small and large applications
- MySQL supports standard SQL
- MySQL compiles on a number of platforms
- MySQL is free to download and use
|
|
|
40. |
How might you remove white space from the beginning of a string? |
|
The ltrim() function removes white space from the start of a string. |
|
|
12345678910
Page 10 of 10