Sr. PHP Programmer Question:

How can we get the IP address of the client?

Tweet Share WhatsApp

Answer:

This question might show an interview how playful and creative the candidate is because there are many options. $_SERVER["REMOTE_ADDR"]; is the easiest solution, but you can write x line scripts for this question.

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
What is the difference between $var and $$var in PHP?The value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?