InterviewSolution
Saved Bookmarks
| 1. |
If the input variable is a string like this “http://www.saåånfoøøundry.com/”, the $url variable after the sanitizing will look like?(a) http://www.saåånfoøøundry.com/(b) http://www.saaanfoooundry.com/(c) http://www.saånfoøundry.com/(d) https://www.sanfoundry.com/The question was asked during a job interview.Asked question is from PHP Filter topic in chapter Error Handling and Exception Handling in PHP of PHP |
|
Answer» RIGHT choice is (d) https://www.sanfoundry.com/ Easiest explanation: Sanitize is NOTHING but TAKE away INVALID characters so therefore the invalid characters like å and ø will be removed. |
|