Priti's Technical Corner

May 11, 2009

PHP Interview Questions

Filed under: PHP — Tags: , , , , , — pritisolanki @ 5:20 am

Question : What is WSDL?
Answer : WSDL document defines services as collections of network endpoints.Types ,element,Operations,port type,Binding,port,Service are the element involved to defined WSDL document.Question : what memory_get_usage function do?
Answer   :Return the amount of memory assigned to your PHP script.

Question: Where call_user_func helps?
Answer:
call_user_func — Call a user function given by the first parameter
<?php
function barber($type)
{
echo “You wanted a $type haircut, no problem”;
}
call_user_func(‘barber’, “mushroom”);
call_user_func(‘barber’, “shave”);
?>

Question: Is it possible to define constant in interface?
Answer : Yes, interface constant exactly works like class constants.

Question
: what is $php_errormsg?
Answer :$php_errormsg store the previous error message generated by PHP.This variable will only be available within the scope in which the error occurred.

Create a free website or blog at WordPress.com.

%d bloggers like this: