Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

How can we get the IP address of the client?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

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 Interview Questions And Answers PDF

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?