What is the difference b/w isset and empty?
The main difference b/w isset and empty are given below:
isset: This variable is used to handle functions and checked a variable is set even through it is empty.
empty: This variable is used to handle functions and checked either variable has a value or it is an empty string,zero0 or not set at all.Reply
What is the different b/w session and cookies in php?
The main difference b/n session and cookies in php are given below:
1.We store cookies in client machine and sessions in server machine.
2.Sessions are secured where as cookies are unsecured.
3.In cookies we stored limited amount of data,where as using session we can stored unlimited amount of data.
4.Session can store objects where cookies can store only strings.
5.Sessions work slower as compare to cookies.
How we use ceil() and floor() function in PHP?
ceil() is use to find nearest maximum values of passing value.
floor() is use to find nearest minimum values of passing value.
How to distinguish b/n PHP and HTML??
Some main advantages between PHP and HTML are given below:
1.PHP is an server-side programing language where as HTML is an client-side programing language.
2.HTML is an static language where PHP is an dynamic language.Using PHP we can share files b/w webpages and accessing databases.
We have to still use HTML to work on PHP. Reply
Output of the code?
$objM = new M(); // Where, M is a class
$objN = $objM;
Both objM and objN are store same values.Because objM get the values from new M(); and it assign to the objN.So, we can say that both have contain same values.Reply
How to get path of php.ini with a PHP script?
We use phpinfo(); to get path of php.ini with a PHP
What do you understand about PHP accelerator ?
Basically PHP accelerator is used to boost up the performance of PHP programing language.We use PHP accelerator to reduce the server load and also use to enhance the performance of PHP code near about 2-10 times.In one word we can say that PHP accelertator is code optimization technique. Reply
What is the difference b/w unlink and unset ?
The basic difference b/w unlink and unset is that, We use unlink function for file system handling.It will simply delete the file.Where unset is used to destroy the variable.Reply
Which pre-defined classes in php ?
Pre-defined classes that are in PHP are given below:
Standard Defined Classes
The class from which dir() is instantiated.
Predefined classes as of PHP
Write some array sort functions available in php ?
I have given you eleven functions that are available in PHP for sorting an array: