PHP Interview Questions – Part 11

1.In how many ways we can retrieve the data in the result set of MySQL using PHP? You can do it by 4 Ways 1. mysql_fetch_row. 2. mysql_fetch_array 3. mysql_fetch_object 4. mysql_fetch_assoc 2.How can we extract string ‘hotmail.com ‘ from a string [email protected] using regular expression of PHP? preg_match(”/^http://invalid.invalid/@(.+)$/”,’[email protected]’,$found); echo $found[1]; 3.How can we create […]

PHP Interview Questions – Part 9

1. What is an Array in PHP? An array in PHP is really an ordered map of pairs of keys and values. 2.What is the basic syntax of Php?? <?php ?> A PHP scripting block can be placed anywhere in the document. 3. What is the name of the scripting engine that powers PHP? PHP […]

PHP Interview Questions – Part 10

1. What is PHP stands for? Hyper text Pre Processor 2. What is PHP? The PHP is a Hypertext Pre-processor and is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. 3. Who is the Father of PHP? Rasmus […]

PHP Interview Questions – Part 8

1. What is the actually used PHP version? Version 5 is the actually used version of PHP. 2. What does PEAR stands for? PEAR means “PHP Extension and Application Repository”. it extends PHP and provides a higher level of programming for web developers. 3.Which programming language does PHP resemble to? HP syntax resembles Perl and […]

PHP Interview Questions – Part 7

1.What are the correct and the most two common way to start and finish a PHP block of code? The two most  common ways to start and finish a PHP script are: <?php [   —  PHP code—- ] ?> and <? [—  PHP code  —] ?> 2. How can we display the output directly to […]

PHP Interview Questions – Part 5

1. What is PHP stands for? Hyper text Pre Processor 2. What is PHP? The PHP is a Hypertext Pre-processor and is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. 3.Who is the Father of PHP? Rasmus Lerdorf […]

PHP Interview Questions – Part 6

1. Are the PHP variable names case sensitive? Yes. The php variable names cases sensitive. 2. Are the PHP function names case sensitive? No, Its not case sensitve functions. 3. What are the differences between PHP 3 and PHP 4? Here’s a list of some of the more important new features: Extended API module. Generalized […]

PHP Interview Questions – Part 3

1.Which cryptographic extension provide generation and verification of digital signatures? The PHP-openssl extension provides several cryptographic operations including generation and verification of digital signatures. 2.How a constant is defined in a PHP script? The define() directive lets us defining a constant as follows: define (“ACONSTANT”, 123); 3.How can you pass a variable by reference? To […]

PHP Interview questions – Part 4

1) What is the difference between strstr & stristr? For strstr, the syntax is: string strstr(string $string,string $str ); The function strstr will search $str in $string. If it finds the string means it will return string from where it finds the $str upto end of $string. For Example: $string = “http://yahoomail.com”; $str=”yahoomail”; The output […]

PHP Interview Questions – Part 2

1.How can we submit from without a submit button? We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we can call the document.form.submit() function to submit the form. 2.How many ways we can retrieve the date in result set of mysql Using php? As […]