KyaPoocha.com

Huge Collection of Interview Questions


‘PHP Interview Questions’ - KyaPoocha.com

What is the difference between md5(), crc32() and sha1() crypto on PHP? 

All these functions generate a hash code and the basic difference among them is the length of the generated hash. crc32() gives 32 bit code sha1() gives 128 bit... Read more »

What is the difference between htmlentities() and htmlspecialchars()? 

htmlspecialchars only takes care of , single quote, double quote and ampersand whereas htmlentities translates all occurrences of character sequences that have some... Read more »

Explain the difference between echo, print and printf. 

echo, print and printf are used for printing strings but the basic difference between them is: echo is the most primitive of them, and just outputs the contents... Read more »

How do I find out the number of parameters passed into function? 

func_num_args() function returns the number of parameters passed in.  Read more »

What is the difference between include and require? 

The basic difference is how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the... Read more »

What does & beside argument mean in function declaration of e.g. asort()? 

It means that the argument is passed by reference and the function will likely modify it corresponding to the documentation. You can pass only variables this way... Read more »

Compare PHP and PERL. 

The biggest advantage of PHP over P E R L is that PHP was designed for scripting for the web where P E R L was designed to do a lot more and can because of this... Read more »

Compare PHP and Cold Fusion. 

PHP is commonly said to be faster and more efficient for complex programming tasks and trying out new ideas. PHP is generally referred to as more stable and less... Read more »

Compare PHP and ASP. 

ASP is not really a language in itself, it’s an acronym for Active Server Pages, the actual language used to program ASP with is Visual Basic Script or JScript.... Read more »

Is it possible manipulate visual objects in PHP ? 

Generally it is, but as PHP is mostly used as a web scripting language it runs in the web servers context, thus visual objects will never appear on the servers desktop.... Read more »

Explain PHP Data Types in detail? 

PHP stores whole numbers in a platform-dependent range. This range is typically that of 32-bit signed integers. Portable code should not assume that values outside... Read more »

What is Scripts and Files? 

A script may include many files, this enables PHP coders to write some of the code once, and use it in many scripts, to include an external file into your script,... Read more »

How to embed PHP code in a File? 

To embed PHP code inside a file, it has to be inside a special set of opening and closing tags. PHP supports the following tags sets: 1. Opening (< ?php) and closing... Read more »

Why PHP is Better choice among the other scripting languages? 

PHP is easy to learn. PHP is free. PHP can run on Windows and Unix servers. PHP is very fast.  Read more »

When to use PHP? 

PHP is Scripting Language and can be used when: Creating Web pages that contain dynamic contents. Responding to HTML forms. Accessing databases. Securing data.  Read more »

Page 1 of 212»